Skip to content

Commit

Permalink
Prefix _ to unused variables.
Browse files Browse the repository at this point in the history
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
  • Loading branch information
omasanori committed Jan 29, 2014
1 parent 96f0e9c commit d3270c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libstd/io/extensions.rs
Expand Up @@ -366,7 +366,7 @@ mod test {
fn push_bytes_fail_reset_len() {
// push_bytes unsafely sets the vector length. This is testing that
// upon failure the length is reset correctly.
let reader = ErroringLaterReader {
let _reader = ErroringLaterReader {
count: 0,
};
// FIXME (#7049): Figure out some other way to do this.
Expand Down
6 changes: 3 additions & 3 deletions src/libstd/io/net/tcp.rs
Expand Up @@ -632,7 +632,7 @@ mod test {

spawn(proc() {
port.recv();
let stream = TcpStream::connect(addr);
let _stream = TcpStream::connect(addr);
// Close
port.recv();
});
Expand All @@ -641,12 +641,12 @@ mod test {
let mut acceptor = TcpListener::bind(addr).listen();
chan.send(());
{
let stream = acceptor.accept();
let _stream = acceptor.accept();
// Close client
chan.send(());
}
// Close listener
}
let listener = TcpListener::bind(addr);
let _listener = TcpListener::bind(addr);
})
}

0 comments on commit d3270c2

Please sign in to comment.