From cef1ae1aee1f07cac94b2e0aa498d4b3c55809c7 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 6 Jan 2022 18:23:50 +0900 Subject: [PATCH] Minor refactoring --- src/display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.rs b/src/display.rs index 308b617..be98887 100644 --- a/src/display.rs +++ b/src/display.rs @@ -114,7 +114,7 @@ impl MPDDisplay { self.opts.password.clone().map_or(String::new(), |s| s), self.opts.log_level, ) - .map_or_else(|_| None, Some); + .ok(); if self.mpd_handler.is_some() { self.is_initialized = true; loop {