diff --git a/rupring/src/request.rs b/rupring/src/request.rs index ddcf19e..3910646 100644 --- a/rupring/src/request.rs +++ b/rupring/src/request.rs @@ -134,7 +134,7 @@ impl UnwindSafe for Request {} impl Request { pub fn get_provider(&self) -> Option<&T> { - return self.di_context.get::(); + self.di_context.get::() } } diff --git a/rupring_macro/src/lib.rs b/rupring_macro/src/lib.rs index 03afef8..3fab8a5 100644 --- a/rupring_macro/src/lib.rs +++ b/rupring_macro/src/lib.rs @@ -969,5 +969,5 @@ pub fn derive_rupring_dto(item: TokenStream) -> TokenStream { code += request_bind_code.as_str(); - return TokenStream::from_str(code.as_str()).unwrap(); + TokenStream::from_str(code.as_str()).unwrap() }