Skip to content

Commit

Permalink
fix some of the globmatch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed May 18, 2023
1 parent e2f4871 commit 6152ba8
Show file tree
Hide file tree
Showing 2 changed files with 590 additions and 556 deletions.
2 changes: 1 addition & 1 deletion crates/globwalk/src/empty_glob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl<'a> InclusiveEmptyAny<'a> {
I::Item: Compose<'a>,
{
let iter = patterns.into_iter().collect::<Vec<_>>();
if iter.len() == 0 {
if iter.is_empty() {
Ok(Self(None))
} else {
Ok(Self(Some(wax::any(iter)?)))
Expand Down
Loading

0 comments on commit 6152ba8

Please sign in to comment.