Suppress unused_unit more locally
This commit is contained in:
parent
29e9d620ca
commit
1d7cbe4c4d
|
@ -11,6 +11,9 @@ macro_rules! check_null_ptr {
|
|||
/// The same as [`check_null_ptr!`], but with a custom message.
|
||||
macro_rules! check_null_ptr_msg {
|
||||
($msg:expr, $ret:expr, $ptr:expr $(, $ptrs:expr)* $(, )?) => {
|
||||
// Clippy doesn't understand it when we use a unit in our `check_null_ptr!()` maccro, even
|
||||
// if we explicitly pattern match on that unit
|
||||
#[allow(clippy::unused_unit)]
|
||||
if $ptr.is_null() $(|| $ptrs.is_null())* {
|
||||
nih_debug_assert_failure!($msg);
|
||||
return $ret;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
// Clippy doesn't understand it when we use a unit in our `check_null_ptr!()` maccro, even if we
|
||||
// explicitly pattern match on that unit
|
||||
#![allow(clippy::unused_unit)]
|
||||
|
||||
use atomic_float::AtomicF32;
|
||||
use atomic_refcell::{AtomicRefCell, AtomicRefMut};
|
||||
use clap_sys::events::{
|
||||
|
|
Loading…
Reference in a new issue