From 6f2fe4edaed24ab96b9b770d7913ccb1060dea0b Mon Sep 17 00:00:00 2001 From: Timon Klinkert Date: Mon, 14 Oct 2024 21:43:18 +0200 Subject: [PATCH] formatted and lint fixes --- utoipauto-core/src/discover.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utoipauto-core/src/discover.rs b/utoipauto-core/src/discover.rs index 37ea068..3fcbdf3 100644 --- a/utoipauto-core/src/discover.rs +++ b/utoipauto-core/src/discover.rs @@ -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(), @@ -145,7 +145,7 @@ fn parse_from_impl(im: &ItemImpl, module_base_path: &str, params: &Parameters) - ))]) } else { None - }; + } }) .unwrap_or_default() }