refactor: removes clippy warnings (#601)

This commit is contained in:
Matthias Möller
2025-07-30 12:33:00 +02:00
committed by GitHub
parent f8b69f4df8
commit 459a4d4f4a
6 changed files with 16 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ fn same_etag(etag: &str) -> String {
}
fn different_etag(etag: &str) -> String {
format!("{}1234", etag)
format!("{etag}1234")
}
#[rstest]

View File

@@ -41,7 +41,7 @@ fn get_file_range_invalid(server: TestServer) -> Result<(), Error> {
}
fn parse_multipart_body<'a>(body: &'a str, boundary: &str) -> Vec<(HeaderMap, &'a str)> {
body.split(&format!("--{}", boundary))
body.split(&format!("--{boundary}"))
.filter(|part| !part.is_empty() && *part != "--\r\n")
.map(|part| {
let (head, body) = part.trim_ascii().split_once("\r\n\r\n").unwrap();