File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ fn add_options(
389
389
390
390
fn make_links ( text : & str ) -> String {
391
391
let mut output = String :: new ( ) ;
392
- let mut words = text. split_inclusive ( |c| c == ' ' || c == '\n' ) ;
392
+ let mut words = text. split_inclusive ( [ ' ' , '\n' ] ) ;
393
393
394
394
while let Some ( word) = words. next ( ) {
395
395
if let Some ( remainder) = word. strip_prefix ( "git-" ) {
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ fn execute_shell_alias(
379
379
if user_args. is_empty ( ) {
380
380
command. arg ( & alias. command ) ;
381
381
} else {
382
- command. arg ( & format ! ( "{} \" $@\" " , & alias. command) ) ;
382
+ command. arg ( format ! ( "{} \" $@\" " , & alias. command) ) ;
383
383
command. arg ( & alias. command ) ;
384
384
}
385
385
command
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub(crate) fn partial_ref_name(input: &mut &str) -> PResult<PartialRefName> {
95
95
input. next_token ( ) ;
96
96
split_offset -= 1 ;
97
97
}
98
- if input[ ..split_offset] . ends_with ( |c| matches ! ( c , '.' | '/' ) ) {
98
+ if input[ ..split_offset] . ends_with ( [ '.' , '/' ] ) {
99
99
split_offset -= 1 ;
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments