Skip to content

Commit

Permalink
Remove some redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Mar 7, 2024
1 parent 164ea1f commit 1fd8968
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
7 changes: 1 addition & 6 deletions crates/rune-alloc/src/btree/map/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ use core::sync::atomic::{AtomicUsize, Ordering::SeqCst};
use rust_alloc::boxed::Box;
use rust_alloc::rc::Rc;

use std::cmp::Ordering;
use std::iter;
use std::mem;
use std::ops::Bound::{self, Excluded, Included, Unbounded};
use std::ops::RangeBounds;
use std::ops::Bound::{Excluded, Included, Unbounded};
use std::panic::{catch_unwind, AssertUnwindSafe};

use rust_alloc::vec;

use crate::clone::TryClone;
use crate::string::{String, TryToString};
use crate::testing::crash_test::{CrashTestDummy, Panic};
use crate::testing::ord_chaos::{Cyclic3, Governed, Governor};
use crate::testing::rng::DeterministicRng;
use crate::vec::Vec;

use super::Entry::{Occupied, Vacant};
use super::*;

macro_rules! assert_matches {
Expand Down
3 changes: 0 additions & 3 deletions crates/rune-alloc/src/btree/set/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#![allow(clippy::redundant_closure)]
#![allow(clippy::useless_vec)]

use core::cmp::Ordering;
use core::fmt;
use core::hash::{Hash, Hasher};
use core::ops::Bound::{Excluded, Included};

use rust_alloc::format;
Expand Down
1 change: 0 additions & 1 deletion crates/rune-alloc/src/hashbrown/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4041,7 +4041,6 @@ mod test_map {
use super::*;

use crate::alloc::into_ok;
use crate::alloc::Global;
use core::convert::Infallible;

fn rehash_in_place<T>(
Expand Down
1 change: 0 additions & 1 deletion crates/rune-alloc/src/ptr/unique.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use core::convert::From;
use core::fmt;
use core::marker::PhantomData;

Expand Down
1 change: 0 additions & 1 deletion crates/rune-alloc/src/slice/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod macros;

use core::fmt;
use core::iter::FusedIterator;
use core::marker::{Send, Sized, Sync};
use core::slice::{from_raw_parts, from_raw_parts_mut};

use crate::alloc::SizedTypeProperties;
Expand Down

0 comments on commit 1fd8968

Please sign in to comment.