mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-05 12:27:53 +00:00
Replace double-quote with single-quote
This commit is contained in:
parent
b68627ce1a
commit
91459d608c
@ -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" ])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user