Replace double-quote with single-quote

This commit is contained in:
Daniel Lockyer 2017-03-31 17:10:18 +01:00
parent b68627ce1a
commit 91459d608c
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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" ])
}