Skip to content

Commit

Permalink
Fix unused std::mem::replace return value warning
Browse files Browse the repository at this point in the history
  • Loading branch information
resilar committed Nov 8, 2020
1 parent 47da670 commit d4844c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl State {
drop(self.mmap.take());
self.file.set_len(size as u64)?;
let mmap = map(&self.file, size)?;
std::mem::replace(&mut self.mmap, Some(mmap));
let _ = std::mem::replace(&mut self.mmap, Some(mmap));
self.size = size;
}

Expand Down

0 comments on commit d4844c0

Please sign in to comment.