diff --git a/src/inclusive_map.rs b/src/inclusive_map.rs index 9f17534..bbb1f80 100644 --- a/src/inclusive_map.rs +++ b/src/inclusive_map.rs @@ -959,6 +959,7 @@ mod tests { } #[proptest] + #[allow(clippy::len_zero)] fn test_len(mut map: RangeInclusiveMap) { assert_eq!(map.len(), map.iter().count()); assert_eq!(map.is_empty(), map.len() == 0); diff --git a/src/inclusive_set.rs b/src/inclusive_set.rs index c46aa79..1077698 100644 --- a/src/inclusive_set.rs +++ b/src/inclusive_set.rs @@ -497,6 +497,7 @@ mod tests { } #[proptest] + #[allow(clippy::len_zero)] fn test_len(mut map: RangeInclusiveSet) { assert_eq!(map.len(), map.iter().count()); assert_eq!(map.is_empty(), map.len() == 0); diff --git a/src/map.rs b/src/map.rs index 9b0aabd..f4167a0 100644 --- a/src/map.rs +++ b/src/map.rs @@ -855,6 +855,7 @@ mod tests { } #[proptest] + #[allow(clippy::len_zero)] fn test_len(mut map: RangeMap) { assert_eq!(map.len(), map.iter().count()); assert_eq!(map.is_empty(), map.len() == 0); diff --git a/src/set.rs b/src/set.rs index a672f38..a48aa65 100644 --- a/src/set.rs +++ b/src/set.rs @@ -468,6 +468,7 @@ mod tests { } #[proptest] + #[allow(clippy::len_zero)] fn test_len(mut map: RangeSet) { assert_eq!(map.len(), map.iter().count()); assert_eq!(map.is_empty(), map.len() == 0);