mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-13 11:18:33 +01:00
Remove needless map
(#970)
This commit is contained in:
parent
d6b79aea32
commit
bc6fefb052
1 changed files with 0 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue