diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8f7942b..62f05ddc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,4 +49,4 @@ jobs: run: cargo fmt --all -- --check - name: Lint code - run: cargo clippy --workspace -- -D warnings + run: cargo clippy --workspace --all-targets -- -D warnings diff --git a/packages/dns-test/src/container/network.rs b/packages/dns-test/src/container/network.rs index 6c1751ca..ebe9c6d9 100644 --- a/packages/dns-test/src/container/network.rs +++ b/packages/dns-test/src/container/network.rs @@ -124,11 +124,7 @@ mod tests { let output = command.output().expect("Failed to get output"); let stdout = String::from_utf8_lossy(&output.stdout); - stdout - .trim() - .lines() - .find(|line| line == &network_name) - .is_some() + stdout.trim().lines().any(|line| line == network_name) } #[test]