mirror of
https://github.com/astro/deadnix.git
synced 2024-07-14 13:40:23 +03:00
delint
This commit is contained in:
parent
a9f858648d
commit
67858737b3
@ -127,7 +127,7 @@ fn main() {
|
|||||||
Box::new(move |s| {
|
Box::new(move |s| {
|
||||||
let s = Path::new(s).canonicalize().unwrap();
|
let s = Path::new(s).canonicalize().unwrap();
|
||||||
! excludes.iter().any(|exclude| {
|
! excludes.iter().any(|exclude| {
|
||||||
s.starts_with(&exclude)
|
s.starts_with(exclude)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
@ -183,7 +183,7 @@ impl Scope {
|
|||||||
pattern
|
pattern
|
||||||
.pat_entries()
|
.pat_entries()
|
||||||
.map(|entry| entry.syntax().clone())
|
.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()),
|
Scope::LambdaArg(_, body) => Box::new(Some(body.clone()).into_iter()),
|
||||||
|
Loading…
Reference in New Issue
Block a user