From 60d30bff0120faf065e43b5a3d43e676265c768b Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 21 Oct 2025 21:46:49 -0400 Subject: [PATCH] tsk-45: Warning fix --- src/detection/song.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/song.rs b/src/detection/song.rs index 7382495..1094055 100644 --- a/src/detection/song.rs +++ b/src/detection/song.rs @@ -20,7 +20,7 @@ pub fn file_type_from_filepath( } /// Gets the file type of a Song given it's data -pub fn file_type_from_data(data: &Vec) -> Result { +pub fn file_type_from_data(data: &[u8]) -> Result { match infer::get(data) { Some(kind) => { let mime = kind.mime_type();