Fix clippy warning

Use `for` loop instead of discarding `collect` result.
This commit is contained in:
Alexandre Bury 2016-07-31 11:29:55 -07:00
parent 191cfcecfd
commit 3410150ed5

View File

@ -199,7 +199,7 @@ impl EditView {
pub fn remove(&mut self, len: usize) {
let start = self.cursor;
let end = self.cursor + len;
Rc::make_mut(&mut self.content).drain(start..end).collect::<Vec<_>>();
for _ in Rc::make_mut(&mut self.content).drain(start..end) {}
}
}