tests: Fix MIRI test errors

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-10-12 16:41:11 -07:00 committed by GitHub
parent d2ed2cdbf2
commit 10bae60266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -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 {