mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
egui_extras: Fix file mime from path (wrong feature name) (#4933)
Fix: features "mime_guess" to "file" typo: 1 Is this what you intended? If you intended to add `mime_guess` to `cargo.toml`, please drop it.
This commit is contained in:
@@ -80,12 +80,12 @@ impl BytesLoader for FileLoader {
|
||||
move || {
|
||||
let result = match std::fs::read(&path) {
|
||||
Ok(bytes) => {
|
||||
#[cfg(feature = "mime_guess")]
|
||||
#[cfg(feature = "file")]
|
||||
let mime = mime_guess2::from_path(&path)
|
||||
.first_raw()
|
||||
.map(|v| v.to_owned());
|
||||
|
||||
#[cfg(not(feature = "mime_guess"))]
|
||||
#[cfg(not(feature = "file"))]
|
||||
let mime = None;
|
||||
|
||||
Ok(File {
|
||||
|
||||
Reference in New Issue
Block a user