Skip to content

Commit c70cc19

Browse files
committed
Fix warnings from write_with_newline lint
1 parent 933230e commit c70cc19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,12 @@ mod cmp {
691691

692692
let a_path = tmp_dir.path().join("a");
693693
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();
695695
a.flush().unwrap();
696696

697697
let b_path = tmp_dir.path().join("b");
698698
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();
700700
b.flush().unwrap();
701701

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

0 commit comments

Comments
 (0)