diff options
author | Ben S <ogham@bsago.me> | 2015-05-12 03:08:24 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-05-12 03:08:24 +0100 |
commit | b0d4c9728f9e8ad47b1f9c4b5ef4ae5dca3906fc (patch) | |
tree | ce6b08b44eff3b99184236e3afcc6077bd19809f /src/filetype.rs | |
parent | fafeda771d5043f86d7e449bab6653bc5186c831 (diff) |
Where do all these tabs keep coming from?
Diffstat (limited to 'src/filetype.rs')
-rw-r--r-- | src/filetype.rs | 20 |
1 files changed, 10 insertions, 10 deletions
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)] |