diff --git a/src/util.rs b/src/util.rs index 47f4b4563c069506fc7abf2c103ada64631a907d..4c8662aa15f69c159cd48f1b5a2c263e69f32e76 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),