mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-16 01:07:09 +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> {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user