Skip to content

Commit c386133

Browse files
committed
use expect instead of assert(..is_some())
Signed-off-by: Daniel King <[email protected]>
1 parent 6a69a39 commit c386133

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vortex-io/src/limit.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,10 @@ mod tests {
259259
assert!(result.is_err());
260260

261261
// After consuming, should be able to push again
262-
assert!(stream.next().await.is_some());
262+
stream
263+
.next()
264+
.await
265+
.expect("The 10 byte vector ought to be in there!");
263266
assert_eq!(stream.bytes_available(), 10);
264267

265268
let result = stream.try_push(Box::pin(async { vec![1u8; 5] }), 5);

0 commit comments

Comments
 (0)