Skip to content

Commit d0b1ed8

Browse files
author
Nicholas Young
authored
Merge pull request #303 from dvic/patch-1
Fix clippy error in static file example
2 parents dd0bcfe + 7dfb4b8 commit d0b1ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/staticfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl StaticFile {
6868
}
6969
};
7070

71-
let mime = mime_guess::guess_mime_type(path);
71+
let mime = mime_guess::from_path(path).first_or_octet_stream();
7272
let mime_str = mime.as_ref();
7373
let size = meta.len();
7474

0 commit comments

Comments
 (0)