Skip to content

Commit

Permalink
include clippy for all features in github workflows (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian authored May 5, 2022
1 parent 21d5e67 commit f59a699
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Lint code for quality and style with Clippy
run: cargo clippy --workspace --tests -- -D warnings
run: cargo clippy --workspace --tests --all-features -- -D warnings
release-tests-ubuntu:
runs-on: ubuntu-latest
needs: cargo-fmt
Expand Down
4 changes: 2 additions & 2 deletions src/discv5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ impl Discv5 {
let multiaddr: Multiaddr = multiaddr
.try_into()
.map_err(|_| RequestError::InvalidMultiaddr("Could not convert to multiaddr"))?;
let node_contact: NodeContact = NodeContact::try_from(multiaddr)
.map_err(|e| RequestError::InvalidMultiaddr(e.into()))?;
let node_contact: NodeContact =
NodeContact::try_from(multiaddr).map_err(RequestError::InvalidMultiaddr)?;

let (callback_send, callback_recv) = oneshot::channel();

Expand Down

0 comments on commit f59a699

Please sign in to comment.