tidy: deps: Hoist a complex multi-line if condition into a let
This makes the code more readable, and eliminates a clippy warning.
This commit is contained in:
parent
40ea999915
commit
fc3419c762
1 changed files with 3 additions and 2 deletions
|
@ -205,12 +205,13 @@ pub fn check(path: &Path, bad: &mut bool) {
|
||||||
let dir = t!(dir);
|
let dir = t!(dir);
|
||||||
|
|
||||||
// skip our exceptions
|
// skip our exceptions
|
||||||
if EXCEPTIONS.iter().any(|exception| {
|
let is_exception = EXCEPTIONS.iter().any(|exception| {
|
||||||
dir.path()
|
dir.path()
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.contains(&format!("src/vendor/{}", exception))
|
.contains(&format!("src/vendor/{}", exception))
|
||||||
}) {
|
});
|
||||||
|
if is_exception {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue