More changes
Some checks failed
Rust Build / Check (pull_request) Failing after 25s
Rust Build / Test Suite (pull_request) Failing after 26s
Rust Build / Rustfmt (pull_request) Successful in 26s
Rust Build / Clippy (pull_request) Failing after 25s
Rust Build / build (pull_request) Failing after 26s

This commit is contained in:
2025-03-21 22:06:40 -04:00
parent e3ec08963d
commit 928421fe12

View File

@@ -197,9 +197,9 @@ mod embedded {
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> {
if pretty { if pretty {
return serde_json::to_string_pretty(&self); serde_json::to_string_pretty(&self)
} else { } else {
return serde_json::to_string(&self); serde_json::to_string(&self)
} }
} }
@@ -222,7 +222,7 @@ mod embedded {
buffer += &self.filename.clone(); buffer += &self.filename.clone();
return Ok(buffer); Ok(buffer)
} else { } else {
Err(std::io::Error::new( Err(std::io::Error::new(
std::io::ErrorKind::Other, std::io::ErrorKind::Other,