Private
Public Access
1
0

fix: resolve clippy errors for rustls 0.23 API and unnecessary_map_or lint

- Fix ServerConfig::builder() to builder_with_provider() for TLS 1.3 enforcement
- Add aws_lc_rs feature to rustls in Cargo.toml
- Fix clippy unnecessary_map_or -> is_some_and in packages/mod.rs
This commit is contained in:
2026-05-03 00:36:32 +00:00
parent b4522ff2ab
commit 705779d7ac
3 changed files with 4 additions and 3 deletions

View File

@ -99,7 +99,7 @@ impl AptBackend {
/// Run apt command and capture output
fn run_apt(&self, args: &[&str]) -> Result<String> {
// Use sudo for operations that modify packages (install, upgrade, remove, purge)
let needs_sudo = args.first().map_or(false, |&cmd| {
let needs_sudo = args.first().is_some_and(|&cmd| {
matches!(
cmd,
"install" | "upgrade" | "remove" | "purge" | "dist-upgrade" | "autoremove"