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

Commit

Permalink
Merge pull request #44 from ferrous-systems/ja-clippier
Browse files Browse the repository at this point in the history
CI: make clippy check cfg(test) code, tests & examples
  • Loading branch information
japaric authored May 22, 2024
2 parents 76d308c + 49990d2 commit e12a1f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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

0 comments on commit e12a1f4

Please sign in to comment.