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> {
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
}

View File

@ -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;

View File

@ -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
}
}