Skip to content

Commit

Permalink
build: resolve warnings
Browse files Browse the repository at this point in the history
Co-authored-by: warren2k <846021+warren2k@users.noreply.github.com>
  • Loading branch information
mightyiam and warren2k committed Sep 17, 2023
1 parent e41823f commit 352bd2d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/fold_specialization.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unstable_name_collisions)]

use criterion::{criterion_group, criterion_main, Criterion};
use itertools::Itertools;

Expand Down
2 changes: 2 additions & 0 deletions benches/tree_fold1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(deprecated)]

use criterion::{criterion_group, criterion_main, Criterion};
use itertools::{cloned, Itertools};

Expand Down
1 change: 1 addition & 0 deletions src/size_hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub fn add_scalar(sh: SizeHint, x: usize) -> SizeHint {
}

/// Subtract `x` correctly from a `SizeHint`.
#[cfg(feature = "use_alloc")]
#[inline]
pub fn sub_scalar(sh: SizeHint, x: usize) -> SizeHint {
let (mut low, mut hi) = sh;
Expand Down
2 changes: 2 additions & 0 deletions tests/quick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//!
//! In particular we test the tedious size_hint and exact size correctness.

#![allow(deprecated, unstable_name_collisions)]

use itertools::free::{
cloned, enumerate, multipeek, peek_nth, put_back, put_back_n, rciter, zip, zip_eq,
};
Expand Down
2 changes: 2 additions & 0 deletions tests/specializations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unstable_name_collisions)]

use itertools::Itertools;
use quickcheck::quickcheck;
use std::fmt::Debug;
Expand Down
1 change: 1 addition & 0 deletions tests/test_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//! option. This file may not be copied, modified, or distributed
//! except according to those terms.
#![no_std]
#![allow(deprecated)]

use crate::it::chain;
use crate::it::free::put_back;
Expand Down
2 changes: 2 additions & 0 deletions tests/test_std.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unstable_name_collisions)]

use crate::it::cloned;
use crate::it::free::put_back_n;
use crate::it::free::rciter;
Expand Down

0 comments on commit 352bd2d

Please sign in to comment.