Whitespace fixes

This commit is contained in:
Ben S 2014-12-12 12:08:14 +00:00
parent 65f124fe39
commit 4484982734
3 changed files with 7 additions and 7 deletions

View File

@ -22,14 +22,14 @@ impl Dir {
pub fn files(&self) -> Vec<File> { pub fn files(&self) -> Vec<File> {
let mut files = vec![]; let mut files = vec![];
for path in self.contents.iter() { for path in self.contents.iter() {
match File::from_path(path.clone(), Some(self)) { match File::from_path(path.clone(), Some(self)) {
Ok(file) => files.push(file), Ok(file) => files.push(file),
Err(e) => println!("{}: {}", path.display(), e), Err(e) => println!("{}: {}", path.display(), e),
} }
} }
files files
} }

View File

@ -46,7 +46,7 @@ static CRYPTO_TYPES: &'static [&'static str] = &[
static COMPILED_TYPES: &'static [&'static str] = &[ static COMPILED_TYPES: &'static [&'static str] = &[
"class", "elc", "hi", "o", "pyc" ]; "class", "elc", "hi", "o", "pyc" ];
static BUILD_TYPES: &'static [&'static str] = &[ static BUILD_TYPES: &'static [&'static str] = &[
"Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt", "Makefile", "Cargo.toml", "SConstruct", "CMakeLists.txt",
"build.gradle", "Rakefile", "Gruntfile.js", "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) { else if self.is_tmpfile() || TEMP_TYPES.iter().any(|&s| s == ext) {
return Temp; return Temp;
} }
let source_files = self.get_source_files(); let source_files = self.get_source_files();
if source_files.len() == 0 { if source_files.len() == 0 {
return Normal; return Normal;

View File

@ -31,9 +31,9 @@ mod c {
} }
pub unsafe fn dimensions() -> winsize { pub unsafe fn dimensions() -> winsize {
let mut window: winsize = zeroed(); let mut window: winsize = zeroed();
ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut winsize); ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut winsize);
window window
} }
} }