Skip to content

Commit

Permalink
build: resolve warnings
Browse files Browse the repository at this point in the history
Co-authored-by: warren2k <[email protected]>
  • Loading branch information
2 people authored and jswrenn committed Oct 2, 2023
1 parent 362d203 commit f027c36
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1 deletion.
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: 1 addition & 1 deletion src/tuple_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ where
// not yet produced as a tuple.
let buffered = T::buffer_len(&self.buf);
// To that, we must add the size estimates of the underlying iterator.
let (mut unbuffered_lo, mut unbuffered_hi) = self.iter.size_hint();
let (unbuffered_lo, unbuffered_hi) = self.iter.size_hint();
// The total low estimate is the sum of the already-buffered elements,
// plus the low estimate of remaining unbuffered elements, divided by
// the tuple size.
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 f027c36

Please sign in to comment.