We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a1edf commit d1ac1f9Copy full SHA for d1ac1f9
core-graphics/src/event.rs
@@ -567,6 +567,7 @@ unsafe extern "C" fn cg_event_tap_callback_internal(
567
/// },
568
/// ).expect("Failed to install event tap");
569
/// ```
570
+#[must_use = "CGEventTap is disabled when dropped"]
571
pub struct CGEventTap<'tap_life> {
572
mach_port: CFMachPort,
573
_callback: Box<CGEventTapCallbackFn<'tap_life>>,
0 commit comments