mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 18:21:20 +00:00
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:
parent
44ce6566f7
commit
29c44e8576
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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].
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user