From 1361e3088224860b143755e9fe1f1d7ce033e476 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Tue, 10 Mar 2026 18:03:39 +0100 Subject: clippy --- src/history.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/history.rs') diff --git a/src/history.rs b/src/history.rs index 8d7ebf4..dbf2584 100644 --- a/src/history.rs +++ b/src/history.rs @@ -3,7 +3,6 @@ use sqlite::{Connection, State}; use crate::BString; use crate::date::DateTime; use std::env::current_dir; -use std::i64; use std::path::PathBuf; fn db_file() -> PathBuf { @@ -209,10 +208,8 @@ pub fn local_history_filter( if path_strict { let canon_path = canonical_path(entry.loc.clone()); return &canon_path == path_prefix; - } else { - if !entry.loc.starts_with(&path_prefix) { - return false; - } + } else if !entry.loc.starts_with(path_prefix) { + return false; } } -- cgit v1.2.3