Skip to content

Commit

Permalink
Fix warnings from write_with_newline lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Oct 18, 2024
1 parent 933230e commit c70cc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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

0 comments on commit c70cc19

Please sign in to comment.