Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Mar 4, 2023
1 parent d325810 commit ca4e238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/streaming/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ fn main() {
let bytes_to_read = end + 1 - start;

let mut local_buf = vec![0_u8; bytes_to_read as usize];
file.seek(SeekFrom::Start(start));
file.read_exact(&mut local_buf);
file.seek(SeekFrom::Start(start))?;
file.read_exact(&mut local_buf)?;
buf.extend_from_slice(&local_buf);
}
// all ranges have been written, write the closing boundary
Expand Down

0 comments on commit ca4e238

Please sign in to comment.