Skip to content

Commit

Permalink
Suppress clippy::unneeded_wildcard_pattern (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt authored Feb 24, 2022
1 parent 01e2e42 commit 2a74b62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/raw_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ macro_rules! _memoffset__field_check {
}

/// Deref-coercion protection macro.
#[cfg(allow_clippy)]
#[macro_export]
#[doc(hidden)]
macro_rules! _memoffset__field_check_tuple {
($type:ty, $field:tt) => {
// Make sure the type argument is a tuple
#[allow(clippy::unneeded_wildcard_pattern)]
let (_, ..): $type;
};
}
#[cfg(not(allow_clippy))]
#[macro_export]
#[doc(hidden)]
macro_rules! _memoffset__field_check_tuple {
Expand Down

0 comments on commit 2a74b62

Please sign in to comment.