2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-08 01:16:41 +00:00

Use assert instead of panic

This commit is contained in:
Oleg Nosov 2020-02-07 22:42:59 +03:00
parent c80915e216
commit b68be72763
No known key found for this signature in database
GPG key ID: DE90B83800644E24

View file

@ -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!");
}
}
}