mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
Remove needless map (#970)
This commit is contained in:
@@ -18,7 +18,6 @@ pub(super) fn insert_url_params(extensions: &mut Extensions, params: Params) {
|
|||||||
let params = params
|
let params = params
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|(key, _)| !key.starts_with(super::NEST_TAIL_PARAM))
|
.filter(|(key, _)| !key.starts_with(super::NEST_TAIL_PARAM))
|
||||||
.map(|(key, value)| (key.to_owned(), value.to_owned()))
|
|
||||||
.map(|(k, v)| {
|
.map(|(k, v)| {
|
||||||
if let Some(decoded) = PercentDecodedByteStr::new(v) {
|
if let Some(decoded) = PercentDecodedByteStr::new(v) {
|
||||||
Ok((ByteStr::new(k), decoded))
|
Ok((ByteStr::new(k), decoded))
|
||||||
|
|||||||
Reference in New Issue
Block a user