mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Fix clippy warning
Use `for` loop instead of discarding `collect` result.
This commit is contained in:
parent
191cfcecfd
commit
3410150ed5
@ -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) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user