From ec2f37ded8bea3eda351323bcb4aacb078e0a1d2 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Wed, 28 May 2025 13:31:14 +0200 Subject: [PATCH] build: Bump MSRV to 1.86 This will allow us to use lints which require newer MSRV (such as [`clippy::allow_attributes`](https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes)). --- Cargo.toml | 2 +- src/utils/system.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a0c4cf77f..2684c97521 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ build = "build.rs" name = "sentry-cli" version = "2.46.0" edition = "2021" -rust-version = "1.80" +rust-version = "1.86" [dependencies] anylog = "0.6.3" diff --git a/src/utils/system.rs b/src/utils/system.rs index d60e3396f1..22c7283e45 100644 --- a/src/utils/system.rs +++ b/src/utils/system.rs @@ -75,9 +75,7 @@ pub fn print_error(err: &Error) { // Debug style for error includes cause chain and backtrace (if available). eprintln!("{} {:?}", style("error:").red(), err); - if Config::current_opt().map_or(true, |config| { - config.get_log_level() < log::LevelFilter::Info - }) { + if Config::current_opt().is_none_or(|config| config.get_log_level() < log::LevelFilter::Info) { eprintln!(); eprintln!("{}", style("Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.").dim()); eprintln!(