summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/bitcast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/bitcast.rs')
-rw-r--r--vendor/rustix/src/bitcast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/rustix/src/bitcast.rs b/vendor/rustix/src/bitcast.rs
index 3924c29d5..735101766 100644
--- a/vendor/rustix/src/bitcast.rs
+++ b/vendor/rustix/src/bitcast.rs
@@ -1,6 +1,7 @@
+#![allow(unused_macros)]
+
// Ensure that the source and destination types are both primitive integer
// types and the same size, and then bitcast.
-#[allow(unused_macros)]
macro_rules! bitcast {
($x:expr) => {{
if false {
@@ -24,7 +25,6 @@ macro_rules! bitcast {
/// Return a [`bitcast`] of the value of `$x.bits()`, where `$x` is a
/// `bitflags` type.
-#[allow(unused_macros)]
macro_rules! bitflags_bits {
($x:expr) => {{
bitcast!($x.bits())