diff --git a/crates/egui/src/data/input.rs b/crates/egui/src/data/input.rs index 3bc880374..43fa9b668 100644 --- a/crates/egui/src/data/input.rs +++ b/crates/egui/src/data/input.rs @@ -719,7 +719,7 @@ impl Modifiers { } /// Checks that the `ctrl/cmd` matches, and that the `shift/alt` of the argument is a subset - /// of the pressed ksey (`self`). + /// of the pressed key (`self`). /// /// This means that if the pattern has not set `shift`, then `self` can have `shift` set or not. /// diff --git a/crates/egui_extras/src/loaders/file_loader.rs b/crates/egui_extras/src/loaders/file_loader.rs index b90cff957..5d1b45fb4 100644 --- a/crates/egui_extras/src/loaders/file_loader.rs +++ b/crates/egui_extras/src/loaders/file_loader.rs @@ -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 {