mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Use slices instead of borrowed string
This commit is contained in:
1 parent
c0ada7d044
commit
78d249d656
1 file changed
+1
-1
@@ -79,7 +79,7 @@ impl ExportManager {
|
||||
}
|
||||
|
||||
/// Write the given content to a file with the specified name
|
||||
fn write_to_file(filename: &String, content: &[u8]) -> Result<()> {
|
||||
fn write_to_file(filename: &str, content: &[u8]) -> Result<()> {
|
||||
let mut file = File::create(filename)?;
|
||||
file.write_all(content)
|
||||
}
|
||||
Reference in new issue
Block a user