mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-30 03:01:21 +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:
|
with:
|
||||||
save-if: ${{ github.ref == 'refs/heads/master' }}
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Run cargo clippy
|
- run: cargo clippy --all-targets --all-features
|
||||||
run: cargo clippy
|
|
||||||
|
|
||||||
ipfs-integration-test:
|
ipfs-integration-test:
|
||||||
name: IPFS Integration tests
|
name: IPFS Integration tests
|
||||||
|
@ -8,6 +8,12 @@
|
|||||||
|
|
||||||
[PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547
|
[PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547
|
||||||
|
|
||||||
|
<!-- Internal changes:
|
||||||
|
|
||||||
|
- Fix lints in tests
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
## 0.44.5
|
## 0.44.5
|
||||||
- Migrate to `quick-protobuf-codec` crate for codec logic.
|
- Migrate to `quick-protobuf-codec` crate for codec logic.
|
||||||
See [PR 4501].
|
See [PR 4501].
|
||||||
|
@ -1224,14 +1224,14 @@ mod tests {
|
|||||||
|
|
||||||
match current {
|
match current {
|
||||||
None => {
|
None => {
|
||||||
assert_eq!(new.reported, false);
|
assert!(!new.reported);
|
||||||
assert_eq!(new.supported, now_supported);
|
assert_eq!(new.supported, now_supported);
|
||||||
}
|
}
|
||||||
Some(current) => {
|
Some(current) => {
|
||||||
if current.supported == now_supported {
|
if current.supported == now_supported {
|
||||||
assert_eq!(new.reported, true);
|
assert!(new.reported);
|
||||||
} else {
|
} else {
|
||||||
assert_eq!(new.reported, false);
|
assert!(!new.reported);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_eq!(new.supported, now_supported);
|
assert_eq!(new.supported, now_supported);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user