clippy fix and make perf warnings to errors

This commit is contained in:
Stephan Dilly 2020-08-26 19:18:57 +02:00
parent 1a5a121b33
commit 59377c7a91
4 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#![deny(clippy::all)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::panic)]
#![deny(clippy::perf)]
pub mod cached;
mod commit_files;

View file

@ -3,6 +3,7 @@
#![forbid(unsafe_code)]
#![forbid(missing_docs)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::perf)]
use std::time::Instant;

View file

@ -216,7 +216,7 @@ pub fn get_hint(ev: KeyEvent) -> String {
KeyCode::F(u) => {
format!("{}F{}", get_modifier_hint(ev.modifiers), u)
}
KeyCode::Null => get_modifier_hint(ev.modifiers).to_string(),
KeyCode::Null => get_modifier_hint(ev.modifiers),
}
}

View file

@ -1,6 +1,7 @@
#![forbid(unsafe_code)]
#![deny(clippy::cargo)]
#![deny(clippy::pedantic)]
#![deny(clippy::perf)]
#![deny(clippy::nursery)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::panic)]