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