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)