summaryrefslogtreecommitdiffstats
path: root/src/fs/fields.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fields.rs')
-rw-r--r--src/fs/fields.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fields.rs b/src/fs/fields.rs
index f3d6735..28c022d 100644
--- a/src/fs/fields.rs
+++ b/src/fs/fields.rs
@@ -50,7 +50,7 @@ pub enum Type {
impl Type {
pub fn is_regular_file(&self) -> bool {
- matches!(*self, Type::File)
+ matches!(*self, Self::File)
}
}
@@ -220,7 +220,7 @@ use std::default::Default;
impl Default for Git {
/// Create a Git status for a file with nothing done to it.
- fn default() -> Git {
- Git { staged: GitStatus::NotModified, unstaged: GitStatus::NotModified }
+ fn default() -> Self {
+ Self { staged: GitStatus::NotModified, unstaged: GitStatus::NotModified }
}
}