~phate/mpc-status

7959c553a8131a8cbf5192d8804fae6639b3adde — ValleyKnight 1 year, 7 months ago b9b93f6 master
reduce code by a single line
1 files changed, 1 insertions(+), 2 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -2
@@ 41,8 41,7 @@ fn main() {
    let status: Status = c.status().unwrap();
    let stat = status.state;
    match stat {
        State::Play => output(&mut c, status, stat),
        State::Pause => output(&mut c, status, stat),
        State::Play | State::Pause => output(&mut c, status, stat),
        State::Stop => println!("[mpd is stopped]")
    }
}