Skip to content

Commit

Permalink
Fixed example compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
f-gagel committed Jan 20, 2024
1 parent 2902bad commit ba8cd47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/example_generated.rs
Expand Up @@ -12,10 +12,6 @@ __declare_public_bitflags! {
pub struct Flags
}

__declare_atomic_bitflags! {
pub struct AtomicFlags: Flags
}

__declare_internal_bitflags! {
pub struct Field0: u32
}
Expand Down
6 changes: 2 additions & 4 deletions src/lib.rs
Expand Up @@ -244,8 +244,6 @@ The result of `Flags::A ^ Flags::B` is `0b0000_0010`, which doesn't correspond t

#[doc(inline)]
pub use traits::{Bits, Flag, Flags};
#[doc(inline)]
pub use atomic::{Atomic, AtomicBits, HasAtomic};

pub mod iter;
pub mod parser;
Expand Down Expand Up @@ -940,11 +938,11 @@ macro_rules! __bitflags_flag {
};
}

pub mod atomic;

#[macro_use]
mod public;
#[macro_use]
mod atomic;
#[macro_use]
mod internal;
#[macro_use]
mod external;
Expand Down
2 changes: 1 addition & 1 deletion src/tests/atomic.rs
Expand Up @@ -2,7 +2,7 @@ use core::{sync::atomic::Ordering, fmt::Debug};

use super::*;

use crate::{Atomic, Flags, HasAtomic};
use crate::{Flags, atomic::{Atomic, HasAtomic}};

#[test]
fn cases() {
Expand Down

0 comments on commit ba8cd47

Please sign in to comment.