File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,9 @@ fn add_help_menu(
172
172
cmd : & ' static str ,
173
173
mut state : usize ,
174
174
) -> usize {
175
- state = state_machine. add ( state, CharacterSet :: from_char ( '?' ) ) ;
176
- state = state_machine. add ( state, CharacterSet :: from_char ( 'h' ) ) ;
177
- state = state_machine. add ( state, CharacterSet :: from_char ( 'e' ) ) ;
178
- state = state_machine. add ( state, CharacterSet :: from_char ( 'l' ) ) ;
179
- state = state_machine. add ( state, CharacterSet :: from_char ( 'p' ) ) ;
175
+ "?help" . chars ( ) . for_each ( |ch| {
176
+ state = state_machine. add ( state, CharacterSet :: from_char ( ch) ) ;
177
+ } ) ;
180
178
state = add_space ( & mut state_machine, state, 1 ) ;
181
179
cmd. chars ( ) . for_each ( |ch| {
182
180
state = state_machine. add ( state, CharacterSet :: from_char ( ch) ) ;
You can’t perform that action at this time.
0 commit comments