From 733e3c0a9e098fa7b693f0d6779717ac2537b1ec Mon Sep 17 00:00:00 2001 From: Philippe-Cholet <44676486+Philippe-Cholet@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:34:37 +0200 Subject: [PATCH] Fix warnings from clippy 1.79 --- src/extrema_set.rs | 1 - src/grouping_map.rs | 2 -- tests/zip.rs | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/extrema_set.rs b/src/extrema_set.rs index d24114c6d..7d353821f 100644 --- a/src/extrema_set.rs +++ b/src/extrema_set.rs @@ -1,4 +1,3 @@ -#![cfg(feature = "use_alloc")] use alloc::{vec, vec::Vec}; use std::cmp::Ordering; diff --git a/src/grouping_map.rs b/src/grouping_map.rs index b4aae9ecf..86cb55dc0 100644 --- a/src/grouping_map.rs +++ b/src/grouping_map.rs @@ -1,5 +1,3 @@ -#![cfg(feature = "use_std")] - use crate::{ adaptors::map::{MapSpecialCase, MapSpecialCaseFn}, MinMaxResult, diff --git a/tests/zip.rs b/tests/zip.rs index 716ac20b3..daed31e32 100644 --- a/tests/zip.rs +++ b/tests/zip.rs @@ -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))); }