Merge pull request #44 from ferrous-systems/ja-clippier
CI: make clippy check cfg(test) code, tests & examples
This commit is contained in:
commit
e12a1f4d92
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user