summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-10-21 21:39:20 +0200
committerCanop <cano.petrole@gmail.com>2020-10-21 21:39:20 +0200
commit059c617e0a67c9219d5f7061bd22064fc63d9efc (patch)
tree69c4dc4eb1674d67c77214c7e3c5c1317ca49172 /src/command
parent717fb076af822e68ac5ad5ddcf91326d409fcc86 (diff)
filesystems view now filterable
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/command.rs b/src/command/command.rs
index 8c51b82..176165b 100644
--- a/src/command/command.rs
+++ b/src/command/command.rs
@@ -87,10 +87,7 @@ impl Command {
/// tells whether this action is a verb being invocated on enter
/// in the input field
pub fn is_verb_invocated_from_input(&self) -> bool {
- match self {
- Self::VerbInvocate(_) => true,
- _ => false,
- }
+ matches!(self, Self::VerbInvocate(_))
}
/// create a command from a raw input.