Fix some clippy lints

This commit is contained in:
Sven-Hendrik Haase 2025-04-25 09:52:07 +02:00
parent cd80432fde
commit b23225d4f6
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915

View File

@ -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()?;