From 98be10682e5c148eb9a95d4f53d4603191cd0040 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 13 Jan 2022 17:26:00 +0900 Subject: [PATCH] Remove unnecessary call to "ok()" on Result --- src/mpd_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpd_handler.rs b/src/mpd_handler.rs index 8770c9b..610b103 100644 --- a/src/mpd_handler.rs +++ b/src/mpd_handler.rs @@ -386,8 +386,8 @@ impl MPDHandler { 'main: loop { if !self.is_reading_picture() - || (!self.is_authenticated().ok().unwrap_or(false) - && !self.failed_to_authenticate().ok().unwrap_or(false)) + || (!self.is_authenticated().unwrap_or(false) + && !self.failed_to_authenticate().unwrap_or(false)) { thread::sleep(SLEEP_DURATION); if let Ok(write_handle) = self.state.try_write() {