Skip to content

Commit

Permalink
Merge pull request #101 from cakebaker/fix_clippy_warnings
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
sylvestre authored Oct 18, 2024
2 parents 933230e + 1910cbf commit 889e7bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,12 @@ mod cmp {

let a_path = tmp_dir.path().join("a");
let mut a = File::create(&a_path).unwrap();
write!(a, "{}c\n", "a".repeat(1024)).unwrap();
writeln!(a, "{}c", "a".repeat(1024)).unwrap();
a.flush().unwrap();

let b_path = tmp_dir.path().join("b");
let mut b = File::create(&b_path).unwrap();
write!(b, "{}c\n", "b".repeat(1024)).unwrap();
writeln!(b, "{}c", "b".repeat(1024)).unwrap();
b.flush().unwrap();

let mut cmd = Command::cargo_bin("diffutils")?;
Expand Down Expand Up @@ -851,12 +851,12 @@ mod cmp {

let a_path = tmp_dir.path().join("a");
let mut a = File::create(&a_path).unwrap();
a.write_all(&bytes).unwrap();
a.write_all(bytes).unwrap();
a.write_all(b"A").unwrap();

let b_path = tmp_dir.path().join("b");
let mut b = File::create(&b_path).unwrap();
b.write_all(&bytes).unwrap();
b.write_all(bytes).unwrap();
b.write_all(b"B").unwrap();

let mut cmd = Command::cargo_bin("diffutils")?;
Expand Down

0 comments on commit 889e7bb

Please sign in to comment.