forked from mirror/async-std
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;
|
self.polled = true;
|
||||||
Poll::Ready(None)
|
Poll::Ready(None)
|
||||||
} else {
|
} else {
|
||||||
panic!("Polled after completion!");
|
assert!(false, "Polled after completion!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue