Skip to content

Commit 92f62ba

Browse files
committed
clippy::clone_double_ref fix
1 parent a47be82 commit 92f62ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/security/cors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl CorsMiddleware {
8888
fn build_preflight_response(&self, origin: &[HeaderValue]) -> http_types::Response {
8989
let mut response = http_types::Response::new(StatusCode::Ok);
9090
response
91-
.insert_header(headers::ACCESS_CONTROL_ALLOW_ORIGIN, origin.clone())
91+
.insert_header(headers::ACCESS_CONTROL_ALLOW_ORIGIN, origin)
9292
.unwrap();
9393
response
9494
.insert_header(

0 commit comments

Comments
 (0)