mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 12:05:11 +00:00
Whitespace fixes
This commit is contained in:
parent
65f124fe39
commit
4484982734
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user