Merge pull request #44 from ferrous-systems/ja-clippier

CI: make clippy check cfg(test) code, tests & examples
This commit is contained in:
Jorge Aparicio 2024-05-22 14:21:17 +02:00 committed by GitHub
commit e12a1f4d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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]