Skip to content
Myr

Use .write_all

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 3066445 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/tests.rs+1 added-1 removed
47 unmodified lines
48#[cfg(test)]49fn create_file_with_size<P: AsRef<Path>>(path: P, size_in_bytes: usize) {50 let content = "#".repeat(size_in_bytes);51 let mut f = fs::File::create::<P>(path).unwrap();52 f.write(content.as_bytes()).unwrap();52 f.write_all(content.as_bytes()).unwrap();53}5455/// Simple tests56#[test]
1434 unmodified lines