Skip to content
Myr

Use slices instead of borrowed string

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

authored by philipp · committed by David Peter · parent c0ada7d · 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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/export/mod.rs+1 added-1 removed
77 unmodified lines
78 }79}8081/// Write the given content to a file with the specified name82fn write_to_file(filename: &String, content: &[u8]) -> Result<()> {82fn write_to_file(filename: &str, content: &[u8]) -> Result<()> {83 let mut file = File::create(filename)?;84 file.write_all(content)85}