From f52819eb11fbbe9b05d6b44ca882428bbc6095e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Mon, 24 Jul 2023 07:14:45 +0100 Subject: [PATCH] fix: write of data --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 4ffcc9ce..47f4b456 100644 --- a/src/util.rs +++ b/src/util.rs @@ -23,7 +23,7 @@ pub fn write_file(path: &str, data: &Vec<u8>) { Ok(file) => file, Err(_) => panic!("Failed to open file: {}", path), }; - file.write_all(&data).unwrap() + file.write_all(data).unwrap() } /// Replaces the extension in the given path with the provided extension. -- GitLab