Skip to content

Commit

Permalink
fix: use absolute path references to rust-core in flags macro
Browse files Browse the repository at this point in the history
Signed-off-by: Ho 229 <ho229v3666@gmail.com>
  • Loading branch information
ho-229 committed Jul 10, 2024
1 parent 34afef7 commit 66afb35
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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]
Expand All @@ -1270,7 +1270,7 @@ macro_rules! flags {
}
}

impl<R: core::convert::Into<$crate::FlagSet<$n>>> core::ops::BitAnd<R> for $n {
impl<R: ::core::convert::Into<$crate::FlagSet<$n>>> ::core::ops::BitAnd<R> for $n {
type Output = $crate::FlagSet<$n>;

#[inline]
Expand All @@ -1279,7 +1279,7 @@ macro_rules! flags {
}
}

impl<R: core::convert::Into<$crate::FlagSet<$n>>> core::ops::BitOr<R> for $n {
impl<R: ::core::convert::Into<$crate::FlagSet<$n>>> ::core::ops::BitOr<R> for $n {
type Output = $crate::FlagSet<$n>;

#[inline]
Expand All @@ -1288,7 +1288,7 @@ macro_rules! flags {
}
}

impl<R: core::convert::Into<$crate::FlagSet<$n>>> core::ops::BitXor<R> for $n {
impl<R: ::core::convert::Into<$crate::FlagSet<$n>>> ::core::ops::BitXor<R> for $n {
type Output = $crate::FlagSet<$n>;

#[inline]
Expand All @@ -1297,7 +1297,7 @@ macro_rules! flags {
}
}

impl<R: core::convert::Into<$crate::FlagSet<$n>>> core::ops::Sub<R> for $n {
impl<R: ::core::convert::Into<$crate::FlagSet<$n>>> ::core::ops::Sub<R> for $n {
type Output = $crate::FlagSet<$n>;

#[inline]
Expand All @@ -1306,7 +1306,7 @@ macro_rules! flags {
}
}

impl<R: core::convert::Into<$crate::FlagSet<$n>>> core::ops::Rem<R> for $n {
impl<R: ::core::convert::Into<$crate::FlagSet<$n>>> ::core::ops::Rem<R> for $n {
type Output = $crate::FlagSet<$n>;

#[inline]
Expand Down

0 comments on commit 66afb35

Please sign in to comment.