Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5d4ed07

Browse files
committed
config: replace .unwrap_or with .map_or
Signed-off-by: Otavio Salvador <[email protected]>
1 parent 2e9a97a commit 5d4ed07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/config/config_type.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ impl ConfigType for IgnoreList {
7272
/// nightly compiler when installed from crates.io, default to nightly mode.
7373
macro_rules! is_nightly_channel {
7474
() => {
75-
option_env!("CFG_RELEASE_CHANNEL")
76-
.map(|c| c == "nightly" || c == "dev")
77-
.unwrap_or(true)
75+
option_env!("CFG_RELEASE_CHANNEL").map_or(true, |c| c == "nightly" || c == "dev")
7876
};
7977
}
8078

0 commit comments

Comments
 (0)