summaryrefslogtreecommitdiffstats
path: root/generator/src/methods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'generator/src/methods.rs')
-rw-r--r--generator/src/methods.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/generator/src/methods.rs b/generator/src/methods.rs
index 064f40a..173ede5 100644
--- a/generator/src/methods.rs
+++ b/generator/src/methods.rs
@@ -103,8 +103,7 @@ fn method_docs(spec: &OpenApiV2, op: &Operation) -> eyre::Result<String> {
for param in params {
let param = param.deref(spec)?;
match &param._in {
- ParameterIn::Path { param: _ }
- | ParameterIn::FormData { param: _ } => {
+ ParameterIn::Path { param: _ } | ParameterIn::FormData { param: _ } => {
write!(&mut out, "/// - `{}`", param.name)?;
if let Some(description) = &param.description {
write!(&mut out, ": {}", description)?;