Skip to content

Commit

Permalink
examples: use read_exact to ignore the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel committed Apr 29, 2021
1 parent c66622a commit 4fad009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mem-dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fad009

Please sign in to comment.