mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
migrate to mime_guess2 (#3456)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user