summaryrefslogtreecommitdiffstats
path: root/src/command/search.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/search.rs')
-rw-r--r--src/command/search.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/command/search.rs b/src/command/search.rs
index d3807bca..1468a36e 100644
--- a/src/command/search.rs
+++ b/src/command/search.rs
@@ -31,7 +31,7 @@ struct State {
}
impl State {
- #[allow(clippy::clippy::cast_sign_loss)]
+ #[allow(clippy::cast_sign_loss)]
fn durations(&self) -> Vec<(String, String)> {
self.results
.iter()
@@ -179,7 +179,7 @@ async fn key_handler(
app: &mut State,
) -> Option<String> {
match input {
- Key::Esc | Key::Ctrl('c') | Key::Ctrl('d') | Key::Ctrl('g') => {
+ Key::Esc | Key::Ctrl('c' | 'd' | 'g') => {
return Some(String::from(""))
}
Key::Char('\n') => {
@@ -241,7 +241,7 @@ async fn key_handler(
None
}
-#[allow(clippy::clippy::cast_possible_truncation)]
+#[allow(clippy::cast_possible_truncation)]
fn draw<T: Backend>(f: &mut Frame<'_, T>, history_count: i64, app: &mut State) {
let chunks = Layout::default()
.direction(Direction::Vertical)
@@ -312,7 +312,7 @@ fn draw<T: Backend>(f: &mut Frame<'_, T>, history_count: i64, app: &mut State) {
// this is a big blob of horrible! clean it up!
// for now, it works. But it'd be great if it were more easily readable, and
// modular. I'd like to add some more stats and stuff at some point
-#[allow(clippy::clippy::cast_possible_truncation)]
+#[allow(clippy::cast_possible_truncation)]
async fn select_history(
query: &[String],
search_mode: SearchMode,
@@ -350,7 +350,7 @@ async fn select_history(
// This is supposed to more-or-less mirror the command line version, so ofc
// it is going to have a lot of args
-#[allow(clippy::clippy::clippy::too_many_arguments)]
+#[allow(clippy::clippy::too_many_arguments)]
pub async fn run(
settings: &Settings,
cwd: Option<String>,