mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-09 07:38:50 +00:00
Fix build script and clippy issues
This commit is contained in:
@@ -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)
|
||||
|
@@ -421,7 +421,7 @@ impl FileWatcher {
|
||||
};
|
||||
debouncer.add_event(ProcessedEvent {
|
||||
path,
|
||||
kind: event.kind.clone(),
|
||||
kind: event.kind,
|
||||
priority: prio,
|
||||
timestamp: Instant::now(),
|
||||
});
|
||||
|
Reference in New Issue
Block a user