From d41279a2a2ee078de7a6ee66238c765c907f1d28 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Wed, 13 Apr 2022 21:16:09 -0300 Subject: [PATCH] fix clippy warns --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f32e610..8e83a25 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -171,7 +171,7 @@ fn get_upgrade_type(headers: &HeaderMap) -> Option { value .to_str() .unwrap() - .split(",") + .split(',') .any(|e| e.to_lowercase() == "upgrade") }) .unwrap_or(false) @@ -187,7 +187,7 @@ fn remove_connection_headers(headers: &mut HeaderMap) { if headers.get(&*CONNECTION_HEADER).is_some() { let value = headers.get(&*CONNECTION_HEADER).map(|e| e.clone()).unwrap(); - for name in value.to_str().unwrap().split(",") { + for name in value.to_str().unwrap().split(',') { if !name.trim().is_empty() { headers.remove(name.trim()); } @@ -235,7 +235,7 @@ fn create_proxied_request( value .to_str() .unwrap() - .split(",") + .split(',') .any(|e| e.to_lowercase() == "trailers") }) .unwrap_or(false);