@@ -147,8 +147,8 @@ impl DebugOptions {
147
147
let mut counter_format = ExpressionFormat :: default ( ) ;
148
148
149
149
if let Ok ( env_debug_options) = std:: env:: var ( RUSTC_COVERAGE_DEBUG_OPTIONS ) {
150
- for setting_str in env_debug_options. replace ( " " , "" ) . replace ( "-" , "_" ) . split ( "," ) {
151
- let mut setting = setting_str. splitn ( 2 , "=" ) ;
150
+ for setting_str in env_debug_options. replace ( " " , "" ) . replace ( "-" , "_" ) . split ( ',' ) {
151
+ let mut setting = setting_str. splitn ( 2 , '=' ) ;
152
152
match setting. next ( ) {
153
153
Some ( option) if option == "allow_unused_expressions" => {
154
154
allow_unused_expressions = bool_option_val ( option, setting. next ( ) ) ;
@@ -210,7 +210,7 @@ fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
210
210
211
211
fn counter_format_option_val ( strval : & str ) -> ExpressionFormat {
212
212
let mut counter_format = ExpressionFormat { id : false , block : false , operation : false } ;
213
- let components = strval. splitn ( 3 , "+" ) ;
213
+ let components = strval. splitn ( 3 , '+' ) ;
214
214
for component in components {
215
215
match component {
216
216
"id" => counter_format. id = true ,
@@ -695,7 +695,7 @@ pub(crate) fn dump_coverage_graphviz(
695
695
let from_bcb_data = & basic_coverage_blocks[ from_bcb] ;
696
696
let from_terminator = from_bcb_data. terminator ( mir_body) ;
697
697
let mut edge_labels = from_terminator. kind . fmt_successor_labels ( ) ;
698
- edge_labels. retain ( |label| label. to_string ( ) != "unreachable" ) ;
698
+ edge_labels. retain ( |label| label != "unreachable" ) ;
699
699
let edge_counters = from_terminator
700
700
. successors ( )
701
701
. map ( |& successor_bb| graphviz_data. get_edge_counter ( from_bcb, successor_bb) ) ;
0 commit comments