File tree 3 files changed +13
-3
lines changed 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
4
9
5
10
jobs :
6
11
build :
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ pub use crate::macos::grab as _grab;
330
330
#[ cfg( feature = "unstable_grab" ) ]
331
331
#[ cfg( target_os = "windows" ) ]
332
332
pub use crate :: windows:: grab as _grab;
333
- #[ cfg( any ( feature = "unstable_grab" ) ) ]
333
+ #[ cfg( feature = "unstable_grab" ) ]
334
334
/// Grabbing global events. In the callback, returning None ignores the event
335
335
/// and returning the event let's it pass. There is no modification of the event
336
336
/// possible here.
@@ -356,7 +356,7 @@ pub use crate::windows::grab as _grab;
356
356
/// }
357
357
/// }
358
358
/// ```
359
- #[ cfg( any ( feature = "unstable_grab" ) ) ]
359
+ #[ cfg( feature = "unstable_grab" ) ]
360
360
pub fn grab < T > ( callback : T ) -> Result < ( ) , GrabError >
361
361
where
362
362
T : Fn ( Event ) -> Option < Event > + ' static ,
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ extern "C" {
79
79
pub static kCFRunLoopCommonModes: CFRunLoopMode ;
80
80
81
81
}
82
+
83
+ // TODO Remove this, this was added as the coded
84
+ // existed and worked, but clippy is complaining.
85
+ // There's probably a better fix.
86
+ #[ allow( improper_ctypes_definitions) ]
82
87
pub type QCallback = unsafe extern "C" fn (
83
88
proxy : CGEventTapProxy ,
84
89
_type : CGEventType ,
You can’t perform that action at this time.
0 commit comments