Skip to content

Commit a9a2979

Browse files
committed
Remove needless imports in libcollections.
1 parent 9a2c878 commit a9a2979

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

src/libcollections/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
#![allow(missing_docs)]
152152
#![stable(feature = "rust1", since = "1.0.0")]
153153

154-
use core::ops::{Drop, Deref, DerefMut};
154+
use core::ops::{Deref, DerefMut};
155155
use core::iter::{FromIterator, FusedIterator};
156156
use core::mem::swap;
157157
use core::mem::size_of;

src/libcollections/borrow.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@
1212
1313
#![stable(feature = "rust1", since = "1.0.0")]
1414

15-
use core::clone::Clone;
16-
use core::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd};
17-
use core::convert::AsRef;
18-
use core::default::Default;
15+
use core::cmp::Ordering;
1916
use core::hash::{Hash, Hasher};
20-
use core::marker::Sized;
2117
use core::ops::Deref;
22-
use core::option::Option;
2318

2419
use fmt;
2520

src/libcollections/linked_list.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1159,9 +1159,6 @@ unsafe impl<'a, T: Sync> Sync for IterMut<'a, T> {}
11591159

11601160
#[cfg(test)]
11611161
mod tests {
1162-
use std::clone::Clone;
1163-
use std::iter::{Iterator, IntoIterator, Extend};
1164-
use std::option::Option::{self, Some, None};
11651162
use std::__rand::{thread_rng, Rng};
11661163
use std::thread;
11671164
use std::vec::Vec;
@@ -1319,7 +1316,6 @@ mod tests {
13191316

13201317
#[test]
13211318
fn test_26021() {
1322-
use std::iter::ExactSizeIterator;
13231319
// There was a bug in split_off that failed to null out the RHS's head's prev ptr.
13241320
// This caused the RHS's dtor to walk up into the LHS at drop and delete all of
13251321
// its nodes.

src/libcollections/range.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
//! Range syntax.
1616
17-
use core::option::Option::{self, None, Some};
1817
use core::ops::{RangeFull, Range, RangeTo, RangeFrom};
1918

2019
/// **RangeArgument** is implemented by Rust's built-in range types, produced

src/libcollections/vec_deque.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2332,9 +2332,6 @@ impl<T> From<VecDeque<T>> for Vec<T> {
23322332

23332333
#[cfg(test)]
23342334
mod tests {
2335-
use core::iter::Iterator;
2336-
use core::option::Option::Some;
2337-
23382335
use test;
23392336

23402337
use super::VecDeque;

0 commit comments

Comments
 (0)