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();