From 2f43ed1597cb602d43e4bf5aaf5611d6af582099 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sun, 11 Jan 2026 12:22:00 +0100 Subject: [PATCH] ci: fix clippy --- .github/workflows/ci.yml | 4 ++-- src/pull.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d4302c..8926339 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,11 @@ jobs: - name: Build run: cargo build env: - RUST_FLAGS: -Dwarnings + RUSTFLAGS: -Dwarnings - name: Lint run: cargo clippy --all-targets --all-features env: - RUST_FLAGS: -Dwarnings + RUSTFLAGS: -Dwarnings - name: Install runtime system dependencies run: | sudo apt-get update diff --git a/src/pull.rs b/src/pull.rs index 184a7e8..d59698a 100644 --- a/src/pull.rs +++ b/src/pull.rs @@ -428,7 +428,7 @@ mod tests { // For determinism, we require for tests that either a distro or series is specified, // as no distribution would mean fallback to system distro - assert!(dist != None || series != None); + assert!(dist.is_some() || series.is_some()); // Use a temp directory as working directory let temp_dir = tempfile::tempdir().unwrap();