style: apply rustfmt formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -134,8 +134,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn falls_back_to_claimed_when_nothing_matches() {
|
fn falls_back_to_claimed_when_nothing_matches() {
|
||||||
let result =
|
let result = refine_content_type(b"unknown stuff", "noext", "application/octet-stream");
|
||||||
refine_content_type(b"unknown stuff", "noext", "application/octet-stream");
|
|
||||||
assert_eq!(result, "application/octet-stream");
|
assert_eq!(result, "application/octet-stream");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,12 +172,8 @@ mod tests {
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn from_file_trusts_specific_claimed() {
|
async fn from_file_trusts_specific_claimed() {
|
||||||
let result = refine_content_type_from_file(
|
let result =
|
||||||
Path::new("/nonexistent"),
|
refine_content_type_from_file(Path::new("/nonexistent"), "file", "image/webp").await;
|
||||||
"file",
|
|
||||||
"image/webp",
|
|
||||||
)
|
|
||||||
.await;
|
|
||||||
assert_eq!(result, "image/webp");
|
assert_eq!(result, "image/webp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user