@@ -691,12 +691,12 @@ mod cmp {
691
691
692
692
let a_path = tmp_dir. path ( ) . join ( "a" ) ;
693
693
let mut a = File :: create ( & a_path) . unwrap ( ) ;
694
- write ! ( a, "{}c\n " , "a" . repeat( 1024 ) ) . unwrap ( ) ;
694
+ writeln ! ( a, "{}c" , "a" . repeat( 1024 ) ) . unwrap ( ) ;
695
695
a. flush ( ) . unwrap ( ) ;
696
696
697
697
let b_path = tmp_dir. path ( ) . join ( "b" ) ;
698
698
let mut b = File :: create ( & b_path) . unwrap ( ) ;
699
- write ! ( b, "{}c\n " , "b" . repeat( 1024 ) ) . unwrap ( ) ;
699
+ writeln ! ( b, "{}c" , "b" . repeat( 1024 ) ) . unwrap ( ) ;
700
700
b. flush ( ) . unwrap ( ) ;
701
701
702
702
let mut cmd = Command :: cargo_bin ( "diffutils" ) ?;
@@ -851,12 +851,12 @@ mod cmp {
851
851
852
852
let a_path = tmp_dir. path ( ) . join ( "a" ) ;
853
853
let mut a = File :: create ( & a_path) . unwrap ( ) ;
854
- a. write_all ( & bytes) . unwrap ( ) ;
854
+ a. write_all ( bytes) . unwrap ( ) ;
855
855
a. write_all ( b"A" ) . unwrap ( ) ;
856
856
857
857
let b_path = tmp_dir. path ( ) . join ( "b" ) ;
858
858
let mut b = File :: create ( & b_path) . unwrap ( ) ;
859
- b. write_all ( & bytes) . unwrap ( ) ;
859
+ b. write_all ( bytes) . unwrap ( ) ;
860
860
b. write_all ( b"B" ) . unwrap ( ) ;
861
861
862
862
let mut cmd = Command :: cargo_bin ( "diffutils" ) ?;
0 commit comments