various: autofix Clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia355e5626b5db7760c8dbb571cb552c46a6a6964
This commit is contained in:
parent
c1a1f4a600
commit
7ed66f1d3f
1 changed files with 25 additions and 25 deletions
|
|
@ -144,8 +144,9 @@ fn write_operation(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
if let Some(params) = &op.parameters {
|
if let Some(params) = &op.parameters
|
||||||
if !params.is_empty() {
|
&& !params.is_empty()
|
||||||
|
{
|
||||||
md.push_str("#### Parameters\n\n");
|
md.push_str("#### Parameters\n\n");
|
||||||
md.push_str("| Name | In | Required | Description |\n");
|
md.push_str("| Name | In | Required | Description |\n");
|
||||||
md.push_str("|------|----|----------|-------------|\n");
|
md.push_str("|------|----|----------|-------------|\n");
|
||||||
|
|
@ -170,7 +171,6 @@ fn write_operation(
|
||||||
}
|
}
|
||||||
md.push('\n');
|
md.push('\n');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Request body
|
// Request body
|
||||||
if let Some(rb) = &op.request_body {
|
if let Some(rb) = &op.request_body {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue