Fix redundant closure
See
@@ -1411,7 +1411,7 @@ fn required_channel_from_matches(matches: &ArgMatches<'_>) -> ChannelIdent {
/// Resolve a channel. Taken from the environment or from CLI args, if
/// given or return the default channel value.
fn channel_from_matches_or_default(matches: &ArgMatches<'_>) -> ChannelIdent {
- channel_from_matches(matches).unwrap_or_else(|| ChannelIdent::configured_value())
+ channel_from_matches(matches).unwrap_or_else(ChannelIdent::configured_value)
}
/// Resolve a target. Default to x86_64-linux if none specified
