Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
Uses "?" instead of "expect()" to follow the same error handling of hte
rest of the code.

Signed-off-by: Rafael Garcia Ruiz <rafael.garcia@collabora.com>
  • Loading branch information
Razaloc committed Dec 1, 2022
1 parent e35f63e commit 04885a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bmap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ where
.async_seek_forward(forward)
.map_err(CopyError::ReadError)
.await?;
output
.flush()
.await
.expect("Error flushing before seeking at output");
output.flush().map_err(CopyError::WriteError).await?;
output
.async_seek_forward(forward)
.map_err(CopyError::WriteError)
Expand Down

0 comments on commit 04885a0

Please sign in to comment.