Skip to content
Snippets Groups Projects
Verified Commit c52187ef authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: clippy issue

parent f52819eb
No related branches found
No related tags found
No related merge requests found
Pipeline #3057 passed
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment