From 78d249d65673786ca77cbb797e6a4d12877edd79 Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 13 Jul 2019 10:29:05 +0200 Subject: [PATCH] Use slices instead of borrowed string --- src/hyperfine/export/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfine/export/mod.rs b/src/hyperfine/export/mod.rs index 2ae94b6..73bc5b4 100644 --- a/src/hyperfine/export/mod.rs +++ b/src/hyperfine/export/mod.rs @@ -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) }