Use `assert` instead of `panic`

master
Oleg Nosov 5 years ago
parent c80915e216
commit b68be72763
No known key found for this signature in database
GPG Key ID: DE90B83800644E24

@ -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…
Cancel
Save