aboutsummaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
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;
}
}