diff --git a/src/song.rs b/src/song.rs index f88e6c0..291b7f3 100644 --- a/src/song.rs +++ b/src/song.rs @@ -197,9 +197,9 @@ mod embedded { impl Song { pub fn to_metadata_json(&self, pretty: bool) -> Result { if pretty { - return serde_json::to_string_pretty(&self); + serde_json::to_string_pretty(&self) } else { - return serde_json::to_string(&self); + serde_json::to_string(&self) } } @@ -222,7 +222,7 @@ mod embedded { buffer += &self.filename.clone(); - return Ok(buffer); + Ok(buffer) } else { Err(std::io::Error::new( std::io::ErrorKind::Other,