Skip to content

Commit

Permalink
Fixing feature clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Sep 25, 2023
1 parent ba33932 commit ecac495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ pub use crate::macos::grab as _grab;
#[cfg(feature = "unstable_grab")]
#[cfg(target_os = "windows")]
pub use crate::windows::grab as _grab;
#[cfg(any(feature = "unstable_grab"))]
#[cfg(feature = "unstable_grab")]
/// Grabbing global events. In the callback, returning None ignores the event
/// and returning the event let's it pass. There is no modification of the event
/// possible here.
Expand All @@ -356,7 +356,7 @@ pub use crate::windows::grab as _grab;
/// }
/// }
/// ```
#[cfg(any(feature = "unstable_grab"))]
#[cfg(feature = "unstable_grab")]
pub fn grab<T>(callback: T) -> Result<(), GrabError>
where
T: Fn(Event) -> Option<Event> + 'static,
Expand Down

0 comments on commit ecac495

Please sign in to comment.