Skip to content

Commit 2097570

Browse files
committed
Fix some warnings
1 parent b6d4d11 commit 2097570

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/libstd/ascii.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ mod tests {
577577
#[test] #[should_fail]
578578
fn test_ascii_fail_char_slice() { 'λ'.to_ascii(); }
579579
580+
#[test]
580581
fn test_opt() {
581582
assert_eq!(65u8.to_ascii_opt(), Some(Ascii { chr: 65u8 }));
582583
assert_eq!(255u8.to_ascii_opt(), None);

src/libstd/io/net/udp.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ impl Writer for UdpStream {
9999
#[cfg(test)]
100100
mod test {
101101
use super::*;
102-
use io::net::ip::{Ipv4Addr, SocketAddr};
102+
use io::net::ip::{SocketAddr};
103103
use io::*;
104-
use io::test::*;
105104
use prelude::*;
106105

107106
iotest!(fn bind_error() {

src/libstd/rt/local.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ mod test {
5454
use unstable::run_in_bare_thread;
5555
use super::*;
5656
use rt::task::Task;
57-
use rt::local_ptr;
5857

5958
#[test]
6059
fn thread_local_task_smoke_test() {

src/test/run-pass/reflect-visit-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl TyVisitor for MyVisitor {
6565
fn visit_estr_uniq(&mut self) -> bool { true }
6666
fn visit_estr_slice(&mut self) -> bool { true }
6767
fn visit_estr_fixed(&mut self,
68-
_sz: uint, _sz: uint,
68+
_sz: uint, _sz2: uint,
6969
_align: uint) -> bool { true }
7070

7171
fn visit_box(&mut self, _mtbl: uint, _inner: *TyDesc) -> bool { true }

0 commit comments

Comments
 (0)