Use slices instead of borrowed string

This commit is contained in:
philipp authored and David Peter committed 2019-07-17 21:11:44 +02:00
1 parent c0ada7d044
commit 78d249d656
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}