Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Feb 2, 2025
1 parent 0572c30 commit 95d8346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions crates/aide/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
#![warn(clippy::pedantic, missing_docs)]
#![allow(
clippy::default_trait_access,
clippy::doc_markdown,
clippy::module_name_repetitions,
clippy::wildcard_imports,
clippy::too_many_lines,
Expand Down
12 changes: 6 additions & 6 deletions crates/aide/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl<'t> TransformOpenApi<'t> {
.collect(),
);
}
};
}

self
}
Expand Down Expand Up @@ -689,7 +689,7 @@ impl<'t> TransformOperation<'t> {
.is_some()
{
ctx.error(Error::ResponseExists(StatusCode::Code(N)));
};
}
} else {
tracing::debug!(type_name = type_name::<R>(), "no response info of type");
}
Expand Down Expand Up @@ -725,7 +725,7 @@ impl<'t> TransformOperation<'t> {
.is_some();
if existing {
ctx.error(Error::ResponseExists(StatusCode::Code(N)));
};
}
}
} else {
tracing::debug!(type_name = type_name::<R>(), "no response info of type");
Expand Down Expand Up @@ -757,7 +757,7 @@ impl<'t> TransformOperation<'t> {
.is_some()
{
ctx.error(Error::ResponseExists(StatusCode::Range(N)));
};
}
} else {
tracing::debug!(type_name = type_name::<R>(), "no response info of type");
}
Expand Down Expand Up @@ -795,7 +795,7 @@ impl<'t> TransformOperation<'t> {
.is_some();
if existing {
ctx.error(Error::ResponseExists(StatusCode::Range(N)));
};
}
}
} else {
tracing::debug!(type_name = type_name::<R>(), "no response info of type");
Expand Down Expand Up @@ -941,7 +941,7 @@ impl<'t> TransformOperation<'t> {
.collect(),
);
}
};
}

self
}
Expand Down

0 comments on commit 95d8346

Please sign in to comment.