Removing embedded song model and default functions
All checks were successful
Rust Build / Check (pull_request) Successful in 28s
Rust Build / Test Suite (pull_request) Successful in 26s
Rust Build / Rustfmt (pull_request) Successful in 24s
Rust Build / Clippy (pull_request) Successful in 25s
Rust Build / build (pull_request) Successful in 25s

This commit is contained in:
KD
2025-03-22 12:26:25 -04:00
parent 1a72dd87a3
commit 6e4b2bd34b

View File

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