diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-12-19 11:49:59 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-12-19 11:49:59 +0000 |
commit | 646742fdeac25f2b92b7295f2e6250adaf7f5c53 (patch) | |
tree | 6788656eef9f0b9049ad6d90bbb8cb72296412c7 /tests/create_directories.rs | |
parent | Bump deps (diff) | |
download | miniserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.tar.gz miniserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.zip |
Fix lints
Diffstat (limited to 'tests/create_directories.rs')
-rw-r--r-- | tests/create_directories.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/create_directories.rs b/tests/create_directories.rs index fa8f4b8..380c796 100644 --- a/tests/create_directories.rs +++ b/tests/create_directories.rs @@ -117,7 +117,7 @@ fn creating_directories_through_symlinks_is_prevented( .post( server .url() - .join(format!("/upload?path=/{}", symlink_directory_str).as_str())? + .join(format!("/upload?path=/{symlink_directory_str}").as_str())? ) .multipart(form) .send()? @@ -153,7 +153,7 @@ fn prevent_path_transversal_attacks( // This should fail assert!(Client::new() - .post(server.url().join(&format!("/upload/path={}", path))?) + .post(server.url().join(&format!("/upload/path={path}"))?) .multipart(form) .send()? .error_for_status() |