Fix minor clippy lints in grandpa (#5988)

* grandpa: fix clippy lints about identity conversions

* grandpa: fix clippy lints about unwrap_or_default

* grandpa: fix clippy lints about explicit return

* grandpa: fix clippy lints about unnecessary intermediary

* grandpa: fix clippy lints about to_string

* grandpa: fix clippy lints about unused imports

* grandpa: fix clippy lints about increments

* grandpa: fix clippy lints about unnecessary matches

* grandpa: fix clippy lints about struct arguments

* Fix clippy::redundant_clone

* Fix clippy::clone_on_copy

* Fix clippy::or_fun_call

* Fix clippy::identity_conversion
This commit is contained in:
Jon Häggblad authored and GitHub committed 2020-05-13 17:40:52 +01:00
1 parent 10492c0689
commit b99033368b
14 files changed
+53 -58

No files matched your search

@@ -229,8 +229,8 @@ where
(&number, &hash), pending.delay);
self.pending_standard_changes.import(
hash.clone(),
number.clone(),
hash,
number,
pending,
is_descendent_of,
)?;