Browse Source

Replace double-quote with single-quote

Daniel Lockyer 9 years ago
parent
commit
91459d608c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/fs/file.rs
  2. 2 2
      src/info/filetype.rs

+ 1 - 1
src/fs/file.rs

@@ -154,7 +154,7 @@ impl<'dir> File<'dir> {
     /// beginning with a dot represent system or configuration files, and
     /// should be hidden by default.
     pub fn is_dotfile(&self) -> bool {
-        self.name.starts_with(".")
+        self.name.starts_with('.')
     }
 
     /// Assuming the current file is a symlink, follows the link and

+ 2 - 2
src/info/filetype.rs

@@ -71,8 +71,8 @@ impl<'a> File<'a> {
     }
 
     pub fn is_temp(&self) -> bool {
-        self.name.ends_with("~")
-            || (self.name.starts_with("#") && self.name.ends_with("#"))
+        self.name.ends_with('~')
+            || (self.name.starts_with('#') && self.name.ends_with('#'))
             || self.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak" ])
     }