Skip to content

Commit

Permalink
Fix warnings from clippy 1.79
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet authored and phimuemue committed Jun 14, 2024
1 parent ad5cc96 commit b86960a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/extrema_set.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![cfg(feature = "use_alloc")]
use alloc::{vec, vec::Vec};
use std::cmp::Ordering;

Expand Down
2 changes: 0 additions & 2 deletions src/grouping_map.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(feature = "use_std")]

use crate::{
adaptors::map::{MapSpecialCase, MapSpecialCaseFn},
MinMaxResult,
Expand Down
2 changes: 1 addition & 1 deletion tests/zip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn test_zip_longest_size_hint() {
let v: &[_] = &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
let v2 = &[10, 11, 12];

assert_eq!(c.zip_longest(v.iter()).size_hint(), (std::usize::MAX, None));
assert_eq!(c.zip_longest(v.iter()).size_hint(), (usize::MAX, None));

assert_eq!(v.iter().zip_longest(v2.iter()).size_hint(), (10, Some(10)));
}
Expand Down

0 comments on commit b86960a

Please sign in to comment.