Fixed some warnings #11

Merged
phoenix merged 13 commits from warning_fixes into devel 2025-03-22 18:24:09 +00:00
Showing only changes of commit 6e4b2bd34b - Show all commits

View File

@@ -1,4 +1,4 @@
use std::default::Default;
// use std::default::Default;
use std::io::Read;
use crate::constants;
@@ -64,6 +64,7 @@ fn is_dur_not_set(num: &i32) -> bool {
*num == 0
}
/*
impl Default for Song {
fn default() -> Self {
Song {
@@ -92,6 +93,7 @@ impl Default for Song {
}
}
}
*/
impl Song {
pub fn to_metadata_json(&self, pretty: bool) -> Result<String, serde_json::Error> {
@@ -189,6 +191,7 @@ impl Song {
}
}
/*
mod embedded {
use std::io::Read;
@@ -341,3 +344,4 @@ mod embedded {
}
}
}
*/