mirror of
https://github.com/astro/deadnix.git
synced 2024-10-05 14:17:15 +03:00
delint
This commit is contained in:
parent
a9f858648d
commit
67858737b3
@ -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 {
|
||||
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user