Skip to content

Commit 59377c7

Browse files
author
Stephan Dilly
committed
clippy fix and make perf warnings to errors
1 parent 1a5a121 commit 59377c7

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

asyncgit/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#![deny(clippy::all)]
66
#![deny(clippy::unwrap_used)]
77
#![deny(clippy::panic)]
8+
#![deny(clippy::perf)]
89

910
pub mod cached;
1011
mod commit_files;

scopetime/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![forbid(unsafe_code)]
44
#![forbid(missing_docs)]
55
#![deny(clippy::unwrap_used)]
6+
#![deny(clippy::perf)]
67

78
use std::time::Instant;
89

src/keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub fn get_hint(ev: KeyEvent) -> String {
216216
KeyCode::F(u) => {
217217
format!("{}F{}", get_modifier_hint(ev.modifiers), u)
218218
}
219-
KeyCode::Null => get_modifier_hint(ev.modifiers).to_string(),
219+
KeyCode::Null => get_modifier_hint(ev.modifiers),
220220
}
221221
}
222222

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![forbid(unsafe_code)]
22
#![deny(clippy::cargo)]
33
#![deny(clippy::pedantic)]
4+
#![deny(clippy::perf)]
45
#![deny(clippy::nursery)]
56
#![deny(clippy::unwrap_used)]
67
#![deny(clippy::panic)]

0 commit comments

Comments
 (0)