aboutsummaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-10 18:03:39 +0100
committerJonas Maier <>2026-03-10 18:03:39 +0100
commit1361e3088224860b143755e9fe1f1d7ce033e476 (patch)
tree2aaa89f1e20001b2cedd4055f24a30fcdff127d5 /src/history.rs
parentff3ac68d159869d57e2cc190236d08c64e00b867 (diff)
downloadpish-1361e3088224860b143755e9fe1f1d7ce033e476.tar.gz
clippy
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs7
1 files changed, 2 insertions, 5 deletions
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;
}
}