File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
365
365
366
366
features_string
367
367
} ;
368
- features. extend ( features_string. split ( "," ) . map ( String :: from) ) ;
368
+ features. extend ( features_string. split ( ',' ) . map ( String :: from) ) ;
369
369
}
370
370
Some ( _) | None => { }
371
371
} ;
@@ -374,7 +374,7 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
374
374
if s. is_empty ( ) {
375
375
return None ;
376
376
}
377
- let feature = if s. starts_with ( "+" ) || s. starts_with ( "-" ) {
377
+ let feature = if s. starts_with ( '+' ) || s. starts_with ( '-' ) {
378
378
& s[ 1 ..]
379
379
} else {
380
380
return Some ( s. to_string ( ) ) ;
Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ fn ident_name_compatibility_hack(
834
834
. flat_map ( |c| c. as_os_str ( ) . to_str ( ) )
835
835
. find ( |c| c. starts_with ( "js-sys" ) )
836
836
{
837
- let mut version = c. trim_start_matches ( "js-sys-" ) . split ( "." ) ;
837
+ let mut version = c. trim_start_matches ( "js-sys-" ) . split ( '.' ) ;
838
838
if version. next ( ) == Some ( "0" )
839
839
&& version. next ( ) == Some ( "3" )
840
840
&& version
Original file line number Diff line number Diff line change @@ -1876,7 +1876,7 @@ fn parse_extern_dep_specs(
1876
1876
)
1877
1877
} ) ;
1878
1878
1879
- let locparts: Vec < _ > = loc. split ( ":" ) . collect ( ) ;
1879
+ let locparts: Vec < _ > = loc. split ( ':' ) . collect ( ) ;
1880
1880
let spec = match & locparts[ ..] {
1881
1881
[ "raw" , ..] => {
1882
1882
// Don't want `:` split string
Original file line number Diff line number Diff line change @@ -684,7 +684,7 @@ mod parse {
684
684
Some ( v) => v,
685
685
} ;
686
686
687
- * slot = Some ( match v. trim_end_matches ( "s" ) {
687
+ * slot = Some ( match v. trim_end_matches ( 's' ) {
688
688
"statement" | "stmt" => MirSpanview :: Statement ,
689
689
"terminator" | "term" => MirSpanview :: Terminator ,
690
690
"block" | "basicblock" => MirSpanview :: Block ,
You can’t perform that action at this time.
0 commit comments