Skip to content
Commit 299d25ba authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Fix Clippy (#2522)



* Import Clippy config from Polkadot

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Auto clippy fix

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* No tabs in comments

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Prefer matches

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Dont drop references

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Trivial

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Refactor

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* fmt

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* add clippy to ci

* Clippy reborrow

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Update client/pov-recovery/src/lib.rs

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Update client/pov-recovery/src/lib.rs

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Partially revert 'Prefer matches'

Using matches! instead of match does give less compiler
checks as per review from @chevdor

.

Partially reverts 8c0609677f3ea040f77fffd5be6facf7c3fec95c

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Update .cargo/config.toml

Co-authored-by: default avatarChevdor <[email protected]>

* Revert revert 💩



Should be fine to use matches! macro since it is an explicit whitelist,
not wildcard matching.

---------

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avataralvicsam <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: default avatarChevdor <[email protected]>
Co-authored-by: parity-processbot <>
parent b72ae577
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment