diff --git a/src/edit_mode/vi/command.rs b/src/edit_mode/vi/command.rs index 5bd30908..b7e4a456 100644 --- a/src/edit_mode/vi/command.rs +++ b/src/edit_mode/vi/command.rs @@ -319,8 +319,8 @@ fn right_bracket_for(c: &char) -> char { } fn is_valid_change_in(c: &char) -> bool { - match *c { - '(' | '[' | '{' | ')' | ']' | '}' | '"' | '\'' | '`' | '<' => true, - _ => false, - } + matches!( + c, + '(' | '[' | '{' | ')' | ']' | '}' | '"' | '\'' | '`' | '<' + ) }