diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:00:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:27:49 +0100 |
commit | ba6b56ae68d5842d814769418d484093865261aa (patch) | |
tree | 2620aadaa46718680ba6e66946ca487839335f56 /src/api/s3_cors.rs | |
parent | 0af314b295f70fdf107524b08063f4d36fb4eeb6 (diff) | |
download | garage-ba6b56ae68d5842d814769418d484093865261aa.tar.gz garage-ba6b56ae68d5842d814769418d484093865261aa.zip |
Fix some new clippy lintsfix-resync
Diffstat (limited to 'src/api/s3_cors.rs')
-rw-r--r-- | src/api/s3_cors.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/api/s3_cors.rs b/src/api/s3_cors.rs index e3deaeda..ab77e23a 100644 --- a/src/api/s3_cors.rs +++ b/src/api/s3_cors.rs @@ -200,12 +200,7 @@ pub fn find_matching_cors_rule<'a>( None => vec![], }; return Ok(cors_config.iter().find(|rule| { - cors_rule_matches( - rule, - origin, - &req.method().to_string(), - request_headers.iter(), - ) + cors_rule_matches(rule, origin, req.method().as_ref(), request_headers.iter()) })); } } |