From 4fad0091beb0585f3fb275087540b45a24f9cc87 Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Wed, 28 Apr 2021 15:45:08 +0200 Subject: [PATCH] examples: use read_exact to ignore the return value --- examples/mem-dump.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mem-dump.rs b/examples/mem-dump.rs index ef56c7a8..452b44ce 100644 --- a/examples/mem-dump.rs +++ b/examples/mem-dump.rs @@ -86,7 +86,7 @@ fn main() { // reset buffer each loop let mut buffer: [u8; BUFFER_SIZE] = [0; BUFFER_SIZE]; drv.padded_memory - .read(&mut buffer) + .read_exact(&mut buffer) .expect(&*format!("Failed to read memory at {:#X}", cur_addr)); dump_file .write_all(&buffer)