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
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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user