refactor(clippy): adapt to new lints

This commit is contained in:
EdJoPaTo committed 2021-05-13 09:24:54 +02:00
1 parent 45083fc332
commit 15fbc26617
5 files changed
+5 -4

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ impl Events {
let tx = tx.clone();
thread::spawn(move || {
let stdin = io::stdin();
#[allow(clippy::manual_flatten)]
for evt in stdin.keys() {
if let Ok(key) = evt {
if let Err(err) = tx.send(Event::Input(key)) {
+1 -1
View File
@@ -37,7 +37,7 @@ impl<'a> StatefulTree<'a> {
}
.min(visible.len() - 1)
});
let new_identifier = visible.get(new_index).unwrap().identifier.to_owned();
let new_identifier = visible.get(new_index).unwrap().identifier.clone();
self.state.select(new_identifier);
}