Skip to content

Commit

Permalink
Remove needless imports in libcollections.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Aug 24, 2016
1 parent 9a2c878 commit a9a2979
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/libcollections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
#![allow(missing_docs)]
#![stable(feature = "rust1", since = "1.0.0")]

use core::ops::{Drop, Deref, DerefMut};
use core::ops::{Deref, DerefMut};
use core::iter::{FromIterator, FusedIterator};
use core::mem::swap;
use core::mem::size_of;
Expand Down
7 changes: 1 addition & 6 deletions src/libcollections/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@

#![stable(feature = "rust1", since = "1.0.0")]

use core::clone::Clone;
use core::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd};
use core::convert::AsRef;
use core::default::Default;
use core::cmp::Ordering;
use core::hash::{Hash, Hasher};
use core::marker::Sized;
use core::ops::Deref;
use core::option::Option;

use fmt;

Expand Down
4 changes: 0 additions & 4 deletions src/libcollections/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,9 +1159,6 @@ unsafe impl<'a, T: Sync> Sync for IterMut<'a, T> {}

#[cfg(test)]
mod tests {
use std::clone::Clone;
use std::iter::{Iterator, IntoIterator, Extend};
use std::option::Option::{self, Some, None};
use std::__rand::{thread_rng, Rng};
use std::thread;
use std::vec::Vec;
Expand Down Expand Up @@ -1319,7 +1316,6 @@ mod tests {

#[test]
fn test_26021() {
use std::iter::ExactSizeIterator;
// There was a bug in split_off that failed to null out the RHS's head's prev ptr.
// This caused the RHS's dtor to walk up into the LHS at drop and delete all of
// its nodes.
Expand Down
1 change: 0 additions & 1 deletion src/libcollections/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

//! Range syntax.

use core::option::Option::{self, None, Some};
use core::ops::{RangeFull, Range, RangeTo, RangeFrom};

/// **RangeArgument** is implemented by Rust's built-in range types, produced
Expand Down
3 changes: 0 additions & 3 deletions src/libcollections/vec_deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,6 @@ impl<T> From<VecDeque<T>> for Vec<T> {

#[cfg(test)]
mod tests {
use core::iter::Iterator;
use core::option::Option::Some;

use test;

use super::VecDeque;
Expand Down

0 comments on commit a9a2979

Please sign in to comment.