From f12837f92f7790540aa96283fd824579283057d3 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 10:58:50 +0100 Subject: [PATCH] fix: clippy issue --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 47f4b456..4c8662aa 100644 --- a/src/util.rs +++ b/src/util.rs @@ -18,7 +18,7 @@ pub fn read_file(path: &str) -> Vec<u8> { data } -pub fn write_file(path: &str, data: &Vec<u8>) { +pub fn write_file(path: &str, data: &[u8]) { let mut file = match File::create(path) { Ok(file) => file, Err(_) => panic!("Failed to open file: {}", path), -- GitLab