Skip to content

Commit 3419e5b

Browse files
mightyiamwarren2k
andcommitted
build: resolve warnings
Co-authored-by: warren2k <[email protected]>
1 parent 6c1c1e5 commit 3419e5b

8 files changed

+13
-1
lines changed

benches/fold_specialization.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unstable_name_collisions)]
2+
13
use criterion::{criterion_group, criterion_main, Criterion};
24
use itertools::Itertools;
35

benches/tree_fold1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use criterion::{criterion_group, criterion_main, Criterion};
24
use itertools::{cloned, Itertools};
35

src/size_hint.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn add_scalar(sh: SizeHint, x: usize) -> SizeHint {
2929
}
3030

3131
/// Subtract `x` correctly from a `SizeHint`.
32+
#[cfg(feature = "use_alloc")]
3233
#[inline]
3334
pub fn sub_scalar(sh: SizeHint, x: usize) -> SizeHint {
3435
let (mut low, mut hi) = sh;

src/tuple_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ where
111111
// not yet produced as a tuple.
112112
let buffered = T::buffer_len(&self.buf);
113113
// To that, we must add the size estimates of the underlying iterator.
114-
let (mut unbuffered_lo, mut unbuffered_hi) = self.iter.size_hint();
114+
let (unbuffered_lo, unbuffered_hi) = self.iter.size_hint();
115115
// The total low estimate is the sum of the already-buffered elements,
116116
// plus the low estimate of remaining unbuffered elements, divided by
117117
// the tuple size.

tests/quick.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//!
44
//! In particular we test the tedious size_hint and exact size correctness.
55
6+
#![allow(deprecated, unstable_name_collisions)]
7+
68
use itertools::free::{
79
cloned, enumerate, multipeek, peek_nth, put_back, put_back_n, rciter, zip, zip_eq,
810
};

tests/specializations.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unstable_name_collisions)]
2+
13
use itertools::Itertools;
24
use quickcheck::quickcheck;
35
use std::fmt::Debug;

tests/test_core.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! option. This file may not be copied, modified, or distributed
55
//! except according to those terms.
66
#![no_std]
7+
#![allow(deprecated)]
78

89
use crate::it::chain;
910
use crate::it::free::put_back;

tests/test_std.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unstable_name_collisions)]
2+
13
use crate::it::cloned;
24
use crate::it::free::put_back_n;
35
use crate::it::free::rciter;

0 commit comments

Comments
 (0)