diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-02-28 20:07:05 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-03-01 09:35:57 +0200 |
| commit | 55ce45e7b52a0a360cf88cba71f59f7d3e9b2346 (patch) | |
| tree | 5c49becf849c32f717a60f05f3bf62f7a02db78c /src/libstd/io | |
| parent | 890293655251c372ea99694c0c9f0795e2663286 (diff) | |
| download | rust-55ce45e7b52a0a360cf88cba71f59f7d3e9b2346.tar.gz rust-55ce45e7b52a0a360cf88cba71f59f7d3e9b2346.zip | |
remove some compiler warnings
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 3b4e15953c4..cf4eb09c19b 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -970,7 +970,7 @@ mod tests { struct R; impl Read for R { - fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { + fn read(&mut self, _: &mut [u8]) -> io::Result<usize> { Err(io::Error::new(io::ErrorKind::Other, "", None)) } } |
