🎨 Colapsa if anidados sugeridos por clippy
This commit is contained in:
parent
1cab0ae9a0
commit
502c00c891
5 changed files with 29 additions and 29 deletions
|
|
@ -158,10 +158,10 @@ fn collect_resources_nested<P: AsRef<Path>>(
|
|||
let entry = entry?;
|
||||
let path = entry.path();
|
||||
|
||||
if let Some(ref filter) = filter {
|
||||
if !filter(path.as_ref()) {
|
||||
continue;
|
||||
}
|
||||
if let Some(ref filter) = filter
|
||||
&& !filter(path.as_ref())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if path.is_dir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue