Skip to content

Commit

Permalink
Silence unused_must_use warning for replace
Browse files Browse the repository at this point in the history
  • Loading branch information
murarth committed Aug 16, 2020
1 parent 1bf4b25 commit 32d8e89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use std::cmp::min;
use std::iter::repeat;
use std::io;
use std::mem::replace;
use std::sync::{Arc, Mutex, MutexGuard};
use std::time::Duration;

Expand Down Expand Up @@ -318,7 +317,7 @@ impl Writer {
self.col = min(self.col, new_size.columns);
self.line = min(self.line, new_size.lines);
self.size = new_size;
replace(&mut self.memory, new_buf);
self.memory = new_buf;
}
}

Expand Down

0 comments on commit 32d8e89

Please sign in to comment.