diff --git a/Cargo.toml b/Cargo.toml index cac1f7f..19ccfe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,10 @@ serde = { version = "1", optional = true, features = ["derive"] } [target.'cfg(target_os = "macos")'.dependencies] objc2 = "0.5.2" -objc2-app-kit = { version = "0.2.2", features = ["NSEvent"] } +objc2-app-kit = { version = "0.2.2", default-features = false, features = [ + "std", + "NSEvent", +] } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] version = "0.59" diff --git a/src/lib.rs b/src/lib.rs index abcfde0..4e04181 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,8 +93,8 @@ impl GlobalHotKeyEvent { pub fn id(&self) -> u32 { self.id } - /// Returns the state of the associated [`HotKey`]. + /// Returns the state of the associated [`HotKey`]. pub fn state(&self) -> HotKeyState { self.state }