Skip to content

Commit

Permalink
Merge pull request #93 from jeffparsons/allow_len_zero
Browse files Browse the repository at this point in the history
Allow clippy::len_zero when we really mean it
  • Loading branch information
jeffparsons committed Feb 9, 2024
2 parents 1f6f22b + d2e5a71 commit c42016f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/inclusive_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ mod tests {
}

#[proptest]
#[allow(clippy::len_zero)]
fn test_len(mut map: RangeInclusiveMap<u64, String>) {
assert_eq!(map.len(), map.iter().count());
assert_eq!(map.is_empty(), map.len() == 0);
Expand Down
1 change: 1 addition & 0 deletions src/inclusive_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ mod tests {
}

#[proptest]
#[allow(clippy::len_zero)]
fn test_len(mut map: RangeInclusiveSet<u64>) {
assert_eq!(map.len(), map.iter().count());
assert_eq!(map.is_empty(), map.len() == 0);
Expand Down
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ mod tests {
}

#[proptest]
#[allow(clippy::len_zero)]
fn test_len(mut map: RangeMap<u64, String>) {
assert_eq!(map.len(), map.iter().count());
assert_eq!(map.is_empty(), map.len() == 0);
Expand Down
1 change: 1 addition & 0 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ mod tests {
}

#[proptest]
#[allow(clippy::len_zero)]
fn test_len(mut map: RangeSet<u64>) {
assert_eq!(map.len(), map.iter().count());
assert_eq!(map.is_empty(), map.len() == 0);
Expand Down

0 comments on commit c42016f

Please sign in to comment.