Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

CI: make clippy check cfg(test) code, tests & examples #44

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 1 addition & 5 deletions packages/dns-test/src/container/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down