Skip to content

Commit

Permalink
formatted and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DenuxPlays committed Oct 14, 2024
1 parent 2fd708c commit 6f2fe4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utoipauto-core/src/discover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn parse_from_impl(im: &ItemImpl, module_base_path: &str, params: &Parameters) -
.as_ref()
.and_then(|trt| trt.1.segments.last().map(|p| p.ident.to_string()))
.and_then(|impl_name| {
return if impl_name.eq(params.schema_attribute_name.as_str()) {
if impl_name.eq(params.schema_attribute_name.as_str()) {
Some(vec![DiscoverType::CustomModelImpl(build_path(
module_base_path,
&im.self_ty.to_token_stream().to_string(),
Expand All @@ -145,7 +145,7 @@ fn parse_from_impl(im: &ItemImpl, module_base_path: &str, params: &Parameters) -
))])
} else {
None
};
}
})
.unwrap_or_default()
}
Expand Down

0 comments on commit 6f2fe4e

Please sign in to comment.