about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-10-12 20:22:10 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2018-10-12 20:22:10 -0300
commit6d7fef078ea01f6cbe3ac9fee0044e32c138f309 (patch)
tree939d36cb4fc32c2526d4c06cd52f59aaa42c885c /src
parent5d4ed07f1c61b6442ffb28419336626deed1509d (diff)
bin: replace `.unwrap_or` with `.map_or`
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index c03835ea74a..91260a199c4 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -156,9 +156,7 @@ fn make_opts() -> Options {
 }
 
 fn is_nightly() -> bool {
-    option_env!("CFG_RELEASE_CHANNEL")
-        .map(|c| c == "nightly" || c == "dev")
-        .unwrap_or(false)
+    option_env!("CFG_RELEASE_CHANNEL").map_or(false, |c| c == "nightly" || c == "dev")
 }
 
 // Returned i32 is an exit code