aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/parser/picker/path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling/src/parser/picker/path.rs')
-rw-r--r--mingling/src/parser/picker/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling/src/parser/picker/path.rs b/mingling/src/parser/picker/path.rs
index c97250f..961542e 100644
--- a/mingling/src/parser/picker/path.rs
+++ b/mingling/src/parser/picker/path.rs
@@ -91,7 +91,7 @@ impl<T: Into<PathBuf>> PathChecker for T where T: Into<PathBuf> {}
fn check_paths(path: impl Into<Vec<PathBuf>>, rule: &PathCheckRule) -> Result<(), ()> {
let paths = path.into();
- for p in paths.iter() {
+ for p in &paths {
check_exist(p, rule)?;
check_type(p, rule)?;
}