core-graphics: Assign a value to a _ variable

Compiler thinks that we need to use the value, so we use this workaroud
to get rid of a warning.
This commit is contained in:
michaelwright235
2023-06-07 02:06:54 +03:00
parent 6b252cf1fc
commit 612ef8f9e5
+1 -1
View File
@@ -505,7 +505,7 @@ impl<'tap_life> CGEventTap<'tap_life> {
callback_ref: Box::from_raw(cbr),
})
} else {
Box::from_raw(cbr);
let _ = Box::from_raw(cbr);
Err(())
}
}