about summary refs log tree commit diff
path: root/src/libstd/sys/unix/os.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-09 20:04:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-12 10:23:27 -0700
commitc933d44f7bb908aa520250b608f85bfacfccc337 (patch)
tree82cab26f340e4cfdc5d373d621fd77713f6c6d78 /src/libstd/sys/unix/os.rs
parent206ee0e8533dd3e1ee324da445e02ad79c51e849 (diff)
downloadrust-c933d44f7bb908aa520250b608f85bfacfccc337.tar.gz
rust-c933d44f7bb908aa520250b608f85bfacfccc337.zip
std: Remove #[allow] directives in sys modules
These were suppressing lots of interesting warnings! Turns out there was also
quite a bit of dead code.
Diffstat (limited to 'src/libstd/sys/unix/os.rs')
-rw-r--r--src/libstd/sys/unix/os.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs
index a38c7a30b75..3266da5eb31 100644
--- a/src/libstd/sys/unix/os.rs
+++ b/src/libstd/sys/unix/os.rs
@@ -10,6 +10,8 @@
 
 //! Implementation of `std::os` functionality for unix systems
 
+#![allow(unused_imports)] // lots of cfg code here
+
 use prelude::v1::*;
 use os::unix::*;
 
@@ -482,7 +484,7 @@ pub fn home_dir() -> Option<PathBuf> {
     #[cfg(not(any(target_os = "android",
                   target_os = "ios")))]
     unsafe fn fallback() -> Option<OsString> {
-        let mut amt = match libc::sysconf(c::_SC_GETPW_R_SIZE_MAX) {
+        let amt = match libc::sysconf(c::_SC_GETPW_R_SIZE_MAX) {
             n if n < 0 => 512 as usize,
             n => n as usize,
         };