From: Stephen Seo Date: Thu, 13 Jan 2022 08:26:00 +0000 (+0900) Subject: Remove unnecessary call to "ok()" on Result X-Git-Tag: 0.2.16~2 X-Git-Url: https://git.seodisparate.com/stephenseo/LD54_Box_Survival?a=commitdiff_plain;h=98be10682e5c148eb9a95d4f53d4603191cd0040;p=mpd_info_screen Remove unnecessary call to "ok()" on Result --- 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() {