mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
clippy fix and make perf warnings to errors
This commit is contained in:
parent
1a5a121b33
commit
59377c7a91
4 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#![deny(clippy::all)]
|
||||
#![deny(clippy::unwrap_used)]
|
||||
#![deny(clippy::panic)]
|
||||
#![deny(clippy::perf)]
|
||||
|
||||
pub mod cached;
|
||||
mod commit_files;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![forbid(missing_docs)]
|
||||
#![deny(clippy::unwrap_used)]
|
||||
#![deny(clippy::perf)]
|
||||
|
||||
use std::time::Instant;
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue