@@ -542,13 +542,13 @@ impl ReportWriter for FileWriter {
542
542
_: EncodingType ,
543
543
) -> Fallible < ( ) > {
544
544
self . create_prefix ( path. as_ref ( ) ) ?;
545
- fs:: write ( & self . 0 . join ( path. as_ref ( ) ) , & b) ?;
545
+ fs:: write ( self . 0 . join ( path. as_ref ( ) ) , b) ?;
546
546
Ok ( ( ) )
547
547
}
548
548
549
549
fn write_string < P : AsRef < Path > > ( & self , path : P , s : Cow < str > , _: & Mime ) -> Fallible < ( ) > {
550
550
self . create_prefix ( path. as_ref ( ) ) ?;
551
- fs:: write ( & self . 0 . join ( path. as_ref ( ) ) , s. as_ref ( ) . as_bytes ( ) ) ?;
551
+ fs:: write ( self . 0 . join ( path. as_ref ( ) ) , s. as_ref ( ) . as_bytes ( ) ) ?;
552
552
Ok ( ( ) )
553
553
}
554
554
}
@@ -973,19 +973,19 @@ mod tests {
973
973
) ;
974
974
assert_eq ! ( gh_result. res, Comparison :: Regressed ) ;
975
975
assert_eq ! (
976
- ( & gh_result. runs[ 0 ] ) . as_ref( ) . unwrap( ) . res,
976
+ gh_result. runs[ 0 ] . as_ref( ) . unwrap( ) . res,
977
977
TestResult :: TestPass
978
978
) ;
979
979
assert_eq ! (
980
- ( & gh_result. runs[ 1 ] ) . as_ref( ) . unwrap( ) . res,
980
+ gh_result. runs[ 1 ] . as_ref( ) . unwrap( ) . res,
981
981
TestResult :: BuildFail ( FailureReason :: Unknown )
982
982
) ;
983
983
assert_eq ! (
984
- Path :: new( ( & gh_result. runs[ 0 ] ) . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
984
+ Path :: new( gh_result. runs[ 0 ] . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
985
985
Path :: new( "stable/gh/brson.hello-rs" )
986
986
) ;
987
987
assert_eq ! (
988
- Path :: new( ( & gh_result. runs[ 1 ] ) . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
988
+ Path :: new( gh_result. runs[ 1 ] . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
989
989
Path :: new( "beta/gh/brson.hello-rs" )
990
990
) ;
991
991
@@ -996,19 +996,19 @@ mod tests {
996
996
) ;
997
997
assert_eq ! ( reg_result. res, Comparison :: Regressed ) ;
998
998
assert_eq ! (
999
- ( & reg_result. runs[ 0 ] ) . as_ref( ) . unwrap( ) . res,
999
+ reg_result. runs[ 0 ] . as_ref( ) . unwrap( ) . res,
1000
1000
TestResult :: TestPass
1001
1001
) ;
1002
1002
assert_eq ! (
1003
- ( & reg_result. runs[ 1 ] ) . as_ref( ) . unwrap( ) . res,
1003
+ reg_result. runs[ 1 ] . as_ref( ) . unwrap( ) . res,
1004
1004
TestResult :: BuildFail ( FailureReason :: Unknown )
1005
1005
) ;
1006
1006
assert_eq ! (
1007
- Path :: new( ( & reg_result. runs[ 0 ] ) . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
1007
+ Path :: new( reg_result. runs[ 0 ] . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
1008
1008
Path :: new( "stable/reg/syn-1.0.0" )
1009
1009
) ;
1010
1010
assert_eq ! (
1011
- Path :: new( ( & reg_result. runs[ 1 ] ) . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
1011
+ Path :: new( reg_result. runs[ 1 ] . as_ref( ) . unwrap( ) . log. as_str( ) ) ,
1012
1012
Path :: new( "beta/reg/syn-1.0.0" )
1013
1013
) ;
1014
1014
0 commit comments