From b0d4c9728f9e8ad47b1f9c4b5ef4ae5dca3906fc Mon Sep 17 00:00:00 2001 From: Ben S Date: Tue, 12 May 2015 03:08:24 +0100 Subject: [PATCH] Where do all these tabs keep coming from? --- src/colours.rs | 26 +++++++++++++------------- src/filetype.rs | 20 ++++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/colours.rs b/src/colours.rs index 352b13c..2e51e61 100644 --- a/src/colours.rs +++ b/src/colours.rs @@ -28,19 +28,19 @@ pub struct Colours { pub struct FileTypes { pub normal: Style, pub directory: Style, - pub symlink: Style, - pub special: Style, - pub executable: Style, - pub image: Style, - pub video: Style, - pub music: Style, - pub lossless: Style, - pub crypto: Style, - pub document: Style, - pub compressed: Style, - pub temp: Style, - pub immediate: Style, - pub compiled: Style, + pub symlink: Style, + pub special: Style, + pub executable: Style, + pub image: Style, + pub video: Style, + pub music: Style, + pub lossless: Style, + pub crypto: Style, + pub document: Style, + pub compressed: Style, + pub temp: Style, + pub immediate: Style, + pub compiled: Style, } #[derive(Clone, Copy, Debug, Default, PartialEq)] diff --git a/src/filetype.rs b/src/filetype.rs index a75f842..d9ea071 100644 --- a/src/filetype.rs +++ b/src/filetype.rs @@ -43,7 +43,7 @@ impl<'_> FileTypes for File<'_> { "build.gradle", "Rakefile", "Gruntfile.js", "Gruntfile.coffee", ]) - } + } fn is_image(&self) -> bool { self.extension_is_one_of( &[ @@ -52,33 +52,33 @@ impl<'_> FileTypes for File<'_> { "svg", "stl", "eps", "dvi", "ps", "cbr", "cbz", "xpm", "ico", ]) - } + } fn is_video(&self) -> bool { self.extension_is_one_of( &[ "avi", "flv", "m2v", "mkv", "mov", "mp4", "mpeg", "mpg", "ogm", "ogv", "vob", "wmv", ]) - } + } fn is_music(&self) -> bool { self.extension_is_one_of( &[ "aac", "m4a", "mp3", "ogg", "wma", ]) - } + } fn is_lossless(&self) -> bool { self.extension_is_one_of( &[ "alac", "ape", "flac", "wav", ]) - } + } fn is_crypto(&self) -> bool { self.extension_is_one_of( &[ "zip", "tar", "Z", "gz", "bz2", "a", "ar", "7z", "iso", "dmg", "tc", "rar", "par", ]) - } + } fn is_document(&self) -> bool { self.extension_is_one_of( &[ @@ -86,20 +86,20 @@ impl<'_> FileTypes for File<'_> { "odp", "odt", "pdf", "ppt", "pptx", "rtf", "xls", "xlsx", ]) - } + } fn is_compressed(&self) -> bool { self.extension_is_one_of( &[ "zip", "tar", "Z", "gz", "bz2", "a", "ar", "7z", "iso", "dmg", "tc", "rar", "par" ]) - } + } fn is_temp(&self) -> bool { self.name.ends_with("~") || (self.name.starts_with("#") && self.name.ends_with("#")) || self.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak" ]) - } + } fn is_compiled(&self) -> bool { if self.extension_is_one_of( &[ "class", "elc", "hi", "o", "pyc" ]) { @@ -111,7 +111,7 @@ impl<'_> FileTypes for File<'_> { else { false } - } + } } #[cfg(broken_test)]