Skip to content

Commit 352bd2d

Browse files
mightyiamwarren2k
andcommitted
build: resolve warnings
Co-authored-by: warren2k <[email protected]>
1 parent e41823f commit 352bd2d

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
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;

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)