diff options
| author | Corey Richardson <corey@octayn.net> | 2014-01-05 13:05:02 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-01-05 21:52:52 -0500 |
| commit | 2097570f4ca354d2f0d18c52659c472cda4fab08 (patch) | |
| tree | 1235a2270aa704aa7d870fd7e2a5fc7bf81f6b31 /src/libstd | |
| parent | b6d4d117f4c2770649c7ddc2ad9ad4ce4c3b13b1 (diff) | |
| download | rust-2097570f4ca354d2f0d18c52659c472cda4fab08.tar.gz rust-2097570f4ca354d2f0d18c52659c472cda4fab08.zip | |
Fix some warnings
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ascii.rs | 1 | ||||
| -rw-r--r-- | src/libstd/io/net/udp.rs | 3 | ||||
| -rw-r--r-- | src/libstd/rt/local.rs | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 974bc454c66..adc10c456e3 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -577,6 +577,7 @@ mod tests { #[test] #[should_fail] fn test_ascii_fail_char_slice() { 'λ'.to_ascii(); } + #[test] fn test_opt() { assert_eq!(65u8.to_ascii_opt(), Some(Ascii { chr: 65u8 })); assert_eq!(255u8.to_ascii_opt(), None); diff --git a/src/libstd/io/net/udp.rs b/src/libstd/io/net/udp.rs index b4f79b285b7..8994f6b461a 100644 --- a/src/libstd/io/net/udp.rs +++ b/src/libstd/io/net/udp.rs @@ -99,9 +99,8 @@ impl Writer for UdpStream { #[cfg(test)] mod test { use super::*; - use io::net::ip::{Ipv4Addr, SocketAddr}; + use io::net::ip::{SocketAddr}; use io::*; - use io::test::*; use prelude::*; iotest!(fn bind_error() { diff --git a/src/libstd/rt/local.rs b/src/libstd/rt/local.rs index b4a6f06c2a4..37596b35015 100644 --- a/src/libstd/rt/local.rs +++ b/src/libstd/rt/local.rs @@ -54,7 +54,6 @@ mod test { use unstable::run_in_bare_thread; use super::*; use rt::task::Task; - use rt::local_ptr; #[test] fn thread_local_task_smoke_test() { |
