From e021cc37c19b7a733d618538deca77d9be39ec2b Mon Sep 17 00:00:00 2001 From: Alex Pikme Date: Mon, 21 Apr 2025 18:57:49 +0300 Subject: [PATCH] Fix Clippy warning by replacing map_or with is_none_or --- crates/rollup/src/telemetry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rollup/src/telemetry.rs b/crates/rollup/src/telemetry.rs index 116aa4c..a87c162 100644 --- a/crates/rollup/src/telemetry.rs +++ b/crates/rollup/src/telemetry.rs @@ -26,7 +26,7 @@ pub fn init_telemetry_stack(metrics_port: u16) -> Result<()> { // If unset, show target only if the filter is more verbose than INFO. let should_show_target = match std::env::var("RUST_LOG_TARGET") { Ok(val) => val != "0", - Err(_) => filter.max_level_hint().map_or(true, |max_level| max_level > Level::INFO), + Err(_) => filter.max_level_hint().is_none_or(|max_level| max_level > Level::INFO), }; let std_layer = FmtLayer::new()