Skip to content

Commit

Permalink
fix(test): new Rust nightly errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wvwwvwwv committed Jan 6, 2024
1 parent 4e59f50 commit 2415ce9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tests/correctness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2551,9 +2551,7 @@ mod ebr_test {
fn shared_nested() {
static DESTROYED: AtomicBool = AtomicBool::new(false);

struct Nest(Shared<A>);

let nested_shared = Shared::new(Nest(Shared::new(A(AtomicUsize::new(10), 10, &DESTROYED))));
let nested_shared = Shared::new(Shared::new(A(AtomicUsize::new(10), 10, &DESTROYED)));
assert!(!DESTROYED.load(Relaxed));
drop(nested_shared);

Expand Down

0 comments on commit 2415ce9

Please sign in to comment.