From aa13cc129c316054a5d5b58c8df0df8216ed9cfc Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 5 Jul 2025 13:16:02 -0600 Subject: chore: apply clippy suggestions --- tests/support/factory_bot.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/support/factory_bot.rs b/tests/support/factory_bot.rs index 051b248c..007f0cb7 100644 --- a/tests/support/factory_bot.rs +++ b/tests/support/factory_bot.rs @@ -7,7 +7,7 @@ use tonic::transport::Channel; #[allow(dead_code)] pub fn build() -> T { - return please::build(); + please::build() } pub fn build_with(initializer: F) -> T @@ -15,7 +15,7 @@ where T: Default, F: std::ops::FnOnce(&mut T), { - return please::build_with(initializer); + please::build_with(initializer) } pub fn build_request(f: impl std::ops::FnOnce(&mut HttpRequest)) -> CheckRequest { @@ -29,11 +29,11 @@ pub fn build_request(f: impl std::ops::FnOnce(&mut HttpRequest)) -> CheckRequest } pub fn build_headers(headers: Vec<(String, String)>) -> HashMap { - return build_with(|item: &mut HashMap| { + build_with(|item: &mut HashMap| { for (key, value) in headers { item.insert(key, value); } - }); + }) } pub fn build_cedar_authorizer() -> authzd::CedarAuthorizer { -- cgit v1.2.3