Fix build script and clippy issues

This commit is contained in:
thePR0M3TH3AN
2025-05-21 13:10:25 -04:00
parent e4c7c18506
commit 9fae768577
4 changed files with 10 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ use std::path::PathBuf;
pub fn determine_scan_root(pattern: &str) -> PathBuf {
// find first wildcard char
let first_wild = pattern
.find(|c| matches!(c, '*' | '?' | '['))
.find(|c| ['*', '?', '['].contains(&c))
.unwrap_or(pattern.len());
// everything up to the wildcard (or the whole string if none)

View File

@@ -421,7 +421,7 @@ impl FileWatcher {
};
debouncer.add_event(ProcessedEvent {
path,
kind: event.kind.clone(),
kind: event.kind,
priority: prio,
timestamp: Instant::now(),
});