migrate to mime_guess2 (#3456)

This commit is contained in:
Clement Rey
2023-10-11 14:24:55 +02:00
committed by GitHub
parent b5e3502067
commit fd75adb3a0
3 changed files with 8 additions and 8 deletions
@@ -68,7 +68,7 @@ impl BytesLoader for FileLoader {
let result = match std::fs::read(&path) {
Ok(bytes) => {
#[cfg(feature = "mime_guess")]
let mime = mime_guess::from_path(&path)
let mime = mime_guess2::from_path(&path)
.first_raw()
.map(|v| v.to_owned());