diff --git a/src/dir.rs b/src/dir.rs index 3b52112..debd06a 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -22,14 +22,14 @@ impl Dir { pub fn files(&self) -> Vec { let mut files = vec![]; - + for path in self.contents.iter() { match File::from_path(path.clone(), Some(self)) { Ok(file) => files.push(file), Err(e) => println!("{}: {}", path.display(), e), } } - + files } diff --git a/src/filetype.rs b/src/filetype.rs index 72864fa..7a8f905 100644 --- a/src/filetype.rs +++ b/src/filetype.rs @@ -46,7 +46,7 @@ static CRYPTO_TYPES: &'static [&'static str] = &[ static COMPILED_TYPES: &'static [&'static str] = &[ "class", "elc", "hi", "o", "pyc" ]; - + static BUILD_TYPES: &'static [&'static str] = &[ "Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt", "build.gradle", "Rakefile", "Gruntfile.js", @@ -123,7 +123,7 @@ impl<'a> HasType for File<'a> { else if self.is_tmpfile() || TEMP_TYPES.iter().any(|&s| s == ext) { return Temp; } - + let source_files = self.get_source_files(); if source_files.len() == 0 { return Normal; diff --git a/src/term.rs b/src/term.rs index 6b76016..dc52acc 100644 --- a/src/term.rs +++ b/src/term.rs @@ -31,9 +31,9 @@ mod c { } pub unsafe fn dimensions() -> winsize { - let mut window: winsize = zeroed(); - ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut winsize); - window + let mut window: winsize = zeroed(); + ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut winsize); + window } }