This commit is contained in:
Astro 2023-09-21 01:14:21 +02:00
parent a9f858648d
commit 67858737b3
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ fn main() {
Box::new(move |s| {
let s = Path::new(s).canonicalize().unwrap();
! excludes.iter().any(|exclude| {
s.starts_with(&exclude)
s.starts_with(exclude)
})
})
} else {

View File

@ -183,7 +183,7 @@ impl Scope {
pattern
.pat_entries()
.map(|entry| entry.syntax().clone())
.chain(Some(body.clone()).into_iter()),
.chain(Some(body.clone())),
),
Scope::LambdaArg(_, body) => Box::new(Some(body.clone()).into_iter()),