@@ -70,7 +70,7 @@ fn expression_ast_transform() {
70
70
assert_eq ! ( value_name_into. to_string( ) , "x" ) ;
71
71
let expr_into: Expression = expr. into ( ) ;
72
72
// For grcov
73
- format ! ( "{expr_into:?}" ) ;
73
+ let _ = format ! ( "{expr_into:?}" ) ;
74
74
assert_eq ! ( expr_into. expression_value. to_string( ) , "x" ) ;
75
75
assert_eq ! ( expr_into. to_string( ) , "x" ) ;
76
76
let value_name_into2: ValueName = String :: from ( "x1" ) . into ( ) ;
@@ -398,7 +398,7 @@ fn expression_ast_transform_expression() {
398
398
operation : None ,
399
399
}
400
400
. into ( ) ;
401
- format ! ( "{expr:#?}" ) ;
401
+ let _ = format ! ( "{expr:#?}" ) ;
402
402
assert_eq ! ( expr. to_string( ) , "ptr" ) ;
403
403
}
404
404
@@ -785,7 +785,7 @@ fn expression_struct_value() {
785
785
let expression_st_value_into: ExpressionValue = expression_st_value. clone ( ) . into ( ) ;
786
786
assert_eq ! ( expression_st_value_into. to_string( ) , "x" ) ;
787
787
// For grcov
788
- format ! ( "{expression_st_value_into:?}" ) ;
788
+ let _ = format ! ( "{expression_st_value_into:?}" ) ;
789
789
let expr = ast:: Expression {
790
790
expression_value : expression_st_value,
791
791
operation : None ,
@@ -849,7 +849,7 @@ fn expression_func_call() {
849
849
let expr_value_into: ExpressionValue = ast_fn_call. clone ( ) . into ( ) ;
850
850
assert_eq ! ( expr_value_into. to_string( ) , "fn1" ) ;
851
851
// For grcov
852
- format ! ( "{expr_value_into:?}" ) ;
852
+ let _ = format ! ( "{expr_value_into:?}" ) ;
853
853
let expr = ast:: Expression {
854
854
expression_value : ast_fn_call,
855
855
operation : None ,
@@ -1369,9 +1369,9 @@ fn custom_expression() {
1369
1369
1370
1370
let expr_into: Expression = expr. clone ( ) . into ( ) ;
1371
1371
// For grcov
1372
- format ! ( "{:#?}" , expr_into) ;
1372
+ let _ = format ! ( "{:#?}" , expr_into) ;
1373
1373
// For grcov
1374
- format ! ( "{:#?}" , expr_into. to_string( ) ) ;
1374
+ let _ = format ! ( "{:#?}" , expr_into. to_string( ) ) ;
1375
1375
let res = state. expression ( & expr, & block_state) . unwrap ( ) ;
1376
1376
assert ! ( state. errors. is_empty( ) ) ;
1377
1377
0 commit comments