From 26a3381a25d17dd51b4e617c0444e2cd36dd2da6 Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sun, 14 May 2023 15:52:43 +0200 Subject: [PATCH] Remove dbg! calls in mpd.rs --- src/mpd.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mpd.rs b/src/mpd.rs index 544c194..ceef18e 100644 --- a/src/mpd.rs +++ b/src/mpd.rs @@ -104,7 +104,6 @@ impl Mpd { stream.write_all(b"binarylimit 1048576\n").await?; buffer.clear(); reader.read_line(&mut buffer).await?; - dbg!(&buffer); Ok(Self { stream, reader }) } @@ -126,7 +125,6 @@ impl Mpd { } pub async fn command(&mut self, command: &str) -> anyhow::Result { - dbg!(command); let mut properties = Vec::new(); self.stream @@ -151,7 +149,6 @@ impl Mpd { }); } } else if buffer.starts_with("OK") { - dbg!(&properties); break Ok(CommandResult { properties, binary: None, @@ -159,7 +156,7 @@ impl Mpd { } else if buffer.starts_with("ACK") { break Err(anyhow!(buffer)); } else { - dbg!(&buffer); + println!("Unexpected MPD response {buffer}"); } } }