From 66afb35755ba08038dcae60c3a37f8d1821bb231 Mon Sep 17 00:00:00 2001 From: Ho 229 Date: Wed, 10 Jul 2024 00:16:42 +0800 Subject: [PATCH] fix: use absolute path references to `rust-core` in flags macro Signed-off-by: Ho 229 --- src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9522e8f..cbee76e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1250,7 +1250,7 @@ macro_rules! flags { const LIST: &'static [Self] = &[$($n::$k),*]; } - impl core::convert::From<$n> for $crate::FlagSet<$n> { + impl ::core::convert::From<$n> for $crate::FlagSet<$n> { #[inline] fn from(value: $n) -> Self { unsafe { @@ -1261,7 +1261,7 @@ macro_rules! flags { } } - impl core::ops::Not for $n { + impl ::core::ops::Not for $n { type Output = $crate::FlagSet<$n>; #[inline] @@ -1270,7 +1270,7 @@ macro_rules! flags { } } - impl>> core::ops::BitAnd for $n { + impl>> ::core::ops::BitAnd for $n { type Output = $crate::FlagSet<$n>; #[inline] @@ -1279,7 +1279,7 @@ macro_rules! flags { } } - impl>> core::ops::BitOr for $n { + impl>> ::core::ops::BitOr for $n { type Output = $crate::FlagSet<$n>; #[inline] @@ -1288,7 +1288,7 @@ macro_rules! flags { } } - impl>> core::ops::BitXor for $n { + impl>> ::core::ops::BitXor for $n { type Output = $crate::FlagSet<$n>; #[inline] @@ -1297,7 +1297,7 @@ macro_rules! flags { } } - impl>> core::ops::Sub for $n { + impl>> ::core::ops::Sub for $n { type Output = $crate::FlagSet<$n>; #[inline] @@ -1306,7 +1306,7 @@ macro_rules! flags { } } - impl>> core::ops::Rem for $n { + impl>> ::core::ops::Rem for $n { type Output = $crate::FlagSet<$n>; #[inline]