mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-08 09:26:42 +00:00
Use assert
instead of panic
This commit is contained in:
parent
c80915e216
commit
b68be72763
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ fn flat_map_doesnt_poll_completed_inner_stream() {
|
|||
self.polled = true;
|
||||
Poll::Ready(None)
|
||||
} else {
|
||||
panic!("Polled after completion!");
|
||||
assert!(false, "Polled after completion!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue