Skip to content

Commit

Permalink
tests: Fix MIRI test errors
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Oct 12, 2023
1 parent d2ed2cd commit 10bae60
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,14 +1267,8 @@ mod tests {
listeners.listeners[1],
Entry::Empty(NonZeroUsize::new(4).unwrap())
);
assert_eq!(
listeners.listeners[2],
Entry::Listener {
state: Cell::new(State::Task(Task::Waker(waker))),
prev: Cell::new(None),
next: Cell::new(Some(key3)),
}
);
assert_eq!(*listeners.listeners[2].prev(), Cell::new(None));
assert_eq!(*listeners.listeners[2].next(), Cell::new(Some(key3)));
assert_eq!(
listeners.listeners[3],
Entry::Listener {
Expand Down

0 comments on commit 10bae60

Please sign in to comment.