diff options
| author | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-06 15:51:42 +0200 |
|---|---|---|
| committer | Jakub Wieczorek <jakub@jakub.cc> | 2014-06-08 13:36:28 +0200 |
| commit | f7d86b2f4ace416a65e84603082c756b8b5dc43e (patch) | |
| tree | 9c47bd9132d7f323bde048e1fe1998c2d5a01692 /src/libnative/io/net.rs | |
| parent | 0271224bdae26260ab498f47323997f9edb5879e (diff) | |
| download | rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.tar.gz rust-f7d86b2f4ace416a65e84603082c756b8b5dc43e.zip | |
Remove the dead code identified by the new lint
Diffstat (limited to 'src/libnative/io/net.rs')
| -rw-r--r-- | src/libnative/io/net.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libnative/io/net.rs b/src/libnative/io/net.rs index 24956e514ec..e7effbd6bdb 100644 --- a/src/libnative/io/net.rs +++ b/src/libnative/io/net.rs @@ -254,7 +254,10 @@ pub struct TcpStream { struct Inner { fd: sock_t, - lock: mutex::NativeMutex, + + // Unused on Linux, where this lock is not necessary. + #[allow(dead_code)] + lock: mutex::NativeMutex } pub struct Guard<'a> { |
