From ca4e23890ffff211d5bb63a04697c1158f548dd4 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Sun, 5 Mar 2023 01:46:01 +0200 Subject: [PATCH] clippy --- examples/streaming/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/streaming/main.rs b/examples/streaming/main.rs index 740a343e78d9..4fb372b62e3a 100644 --- a/examples/streaming/main.rs +++ b/examples/streaming/main.rs @@ -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