ci: run clippy on all targets

A small left-over mistake from moving towards `Cargo.toml` controlled lint configuration.

Pull-Request: #4654.
This commit is contained in:
Thomas Eizinger 2023-10-16 17:26:08 +11:00 committed by GitHub
parent 44ce6566f7
commit 29c44e8576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -229,8 +229,7 @@ jobs:
with:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Run cargo clippy
run: cargo clippy
- run: cargo clippy --all-targets --all-features
ipfs-integration-test:
name: IPFS Integration tests

View File

@ -8,6 +8,12 @@
[PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547
<!-- Internal changes:
- Fix lints in tests
-->
## 0.44.5
- Migrate to `quick-protobuf-codec` crate for codec logic.
See [PR 4501].

View File

@ -1224,14 +1224,14 @@ mod tests {
match current {
None => {
assert_eq!(new.reported, false);
assert!(!new.reported);
assert_eq!(new.supported, now_supported);
}
Some(current) => {
if current.supported == now_supported {
assert_eq!(new.reported, true);
assert!(new.reported);
} else {
assert_eq!(new.reported, false);
assert!(!new.reported);
}
assert_eq!(new.supported, now_supported);