about summary refs log tree commit diff
path: root/src/libcore/util.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-02-27 00:10:03 -0500
committerAlex Crichton <alex@alexcrichton.com>2013-03-04 12:27:01 -0500
commitdfb5c10dea0dd7bc56950148fa23fd02a07706fa (patch)
tree18fc8c7483b7acf5c1ee8e22cbd92bd119541b66 /src/libcore/util.rs
parent55461d888f63e7113f1ea40e586e4917abe4815b (diff)
downloadrust-dfb5c10dea0dd7bc56950148fa23fd02a07706fa.tar.gz
rust-dfb5c10dea0dd7bc56950148fa23fd02a07706fa.zip
Remove unused imports throughout src/
Diffstat (limited to 'src/libcore/util.rs')
-rw-r--r--src/libcore/util.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/util.rs b/src/libcore/util.rs
index 522cb2d2783..48be6178ed2 100644
--- a/src/libcore/util.rs
+++ b/src/libcore/util.rs
@@ -14,7 +14,6 @@ Miscellaneous helpers for common patterns.
 
 */
 
-use cmp::Eq;
 use prelude::*;
 
 /// The identity function.
@@ -102,8 +101,8 @@ pub fn unreachable() -> ! {
     fail!(~"internal error: entered unreachable code");
 }
 
+#[cfg(test)]
 mod tests {
-    use option::{None, Some};
     use util::{NonCopyable, id, replace, swap};
 
     #[test]