diff options
Diffstat (limited to 'src/fs/fields.rs')
-rw-r--r-- | src/fs/fields.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fs/fields.rs b/src/fs/fields.rs index 39a92b1..f3d6735 100644 --- a/src/fs/fields.rs +++ b/src/fs/fields.rs @@ -50,10 +50,7 @@ pub enum Type { impl Type { pub fn is_regular_file(&self) -> bool { - match *self { - Type::File => true, - _ => false, - } + matches!(*self, Type::File) } } |