Fix clippy issues (#1884)

* fix clippy issues

* fix?

* fix?

* forget about extra_unused_type_parameters lint for now
This commit is contained in:
Svyatoslav Nikolsky
2023-02-16 11:16:02 +03:00
committed by Bastian Köcher
parent 25c17feb23
commit 914213d0af
4 changed files with 5 additions and 9 deletions
+3 -5
View File
@@ -141,10 +141,9 @@ pub struct AssertChainConstants {
///
/// 1) block weight limits are matching;
/// 2) block size limits are matching.
pub fn assert_chain_constants<R, C>(params: AssertChainConstants)
pub fn assert_chain_constants<R>(params: AssertChainConstants)
where
R: frame_system::Config,
C: Chain,
{
// we don't check runtime version here, because in our case we'll be building relay from one
// repo and runtime will live in another repo, along with outdated relay version. To avoid
@@ -274,7 +273,7 @@ pub struct AssertCompleteBridgeConstants<'a> {
/// All bridge-related constants tests for the complete standard messages bridge (i.e. with bridge
/// GRANDPA and messages pallets deployed).
pub fn assert_complete_bridge_constants<R, GI, MI, B, This>(params: AssertCompleteBridgeConstants)
pub fn assert_complete_bridge_constants<R, GI, MI, B>(params: AssertCompleteBridgeConstants)
where
R: frame_system::Config
+ pallet_bridge_grandpa::Config<GI>
@@ -282,9 +281,8 @@ where
GI: 'static,
MI: 'static,
B: MessageBridge,
This: Chain,
{
assert_chain_constants::<R, This>(params.this_chain_constants);
assert_chain_constants::<R>(params.this_chain_constants);
assert_bridge_grandpa_pallet_constants::<R, GI>();
assert_bridge_messages_pallet_constants::<R, MI>(params.messages_pallet_constants);
assert_bridge_pallet_names::<B, R, GI, MI>(params.pallet_names);