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; self.polled = true;
Poll::Ready(None) Poll::Ready(None)
} else { } else {
panic!("Polled after completion!"); assert!(false, "Polled after completion!");
} }
} }
} }