From bc6fefb0528e9865fcfe40172119621d49afb1e9 Mon Sep 17 00:00:00 2001 From: takumi Date: Tue, 26 Apr 2022 15:15:04 +0800 Subject: [PATCH] Remove needless `map` (#970) --- axum/src/routing/url_params.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/axum/src/routing/url_params.rs b/axum/src/routing/url_params.rs index 71f3ccf2..c24b08fc 100644 --- a/axum/src/routing/url_params.rs +++ b/axum/src/routing/url_params.rs @@ -18,7 +18,6 @@ pub(super) fn insert_url_params(extensions: &mut Extensions, params: Params) { let params = params .iter() .filter(|(key, _)| !key.starts_with(super::NEST_TAIL_PARAM)) - .map(|(key, value)| (key.to_owned(), value.to_owned())) .map(|(k, v)| { if let Some(decoded) = PercentDecodedByteStr::new(v) { Ok((ByteStr::new(k), decoded))