mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-16 02:39:13 +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)
|
||||
|
Reference in New Issue
Block a user