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))