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 Nov 29, 2022
1 parent aba847d commit b8fe715
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 b8fe715

Please sign in to comment.