We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23850f commit 9feef04Copy full SHA for 9feef04
src/client.rs
@@ -221,7 +221,8 @@ impl<S: Read + Write> Client<S> {
221
/// Get current playing song
222
pub fn currentsong(&mut self) -> Result<Option<Song>> {
223
self.run_command("currentsong", ())
224
- .and_then(|_| self.read_struct::<Song>().map(|s| if s.place.is_none() { None } else { Some(s) }))
+ .and_then(|_| self.read_struct::<Song>())
225
+ .map(|s| if s.place.is_none() { None } else { Some(s) })
226
}
227
228
/// Clear current queue
0 commit comments