mirror of
https://github.com/svenstaro/miniserve
synced 2025-04-29 15:47:27 +08:00
Fix some clippy lints
This commit is contained in:
parent
cd80432fde
commit
b23225d4f6
@ -24,7 +24,7 @@ fn api_dir_size(
|
||||
command.insert("DirSize", dir);
|
||||
|
||||
let resp = Client::new()
|
||||
.post(server.url().join(&format!("__miniserve_internal/api"))?)
|
||||
.post(server.url().join("__miniserve_internal/api")?)
|
||||
.json(&command)
|
||||
.send()?
|
||||
.error_for_status()?;
|
||||
@ -54,7 +54,7 @@ fn api_dir_size_prevent_path_transversal_attacks(
|
||||
command.insert("DirSize", path);
|
||||
|
||||
let resp = Client::new()
|
||||
.post(server.url().join(&format!("__miniserve_internal/api"))?)
|
||||
.post(server.url().join("__miniserve_internal/api")?)
|
||||
.json(&command)
|
||||
.send()?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user