mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-13 11:18:33 +01:00
Replace to_string with to_owned (#960)
This commit is contained in:
parent
0d2c61c472
commit
98795b7f75
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ where
|
|||
}
|
||||
|
||||
fn replace_trailing_slash(uri: &Uri, new_path: &str) -> Uri {
|
||||
let mut new_path_and_query = new_path.to_string();
|
||||
let mut new_path_and_query = new_path.to_owned();
|
||||
if let Some(query) = uri.query() {
|
||||
new_path_and_query.push('?');
|
||||
new_path_and_query.push_str(query);
|
||||
|
|
Loading…
Add table
Reference in a new issue