Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypan committed Oct 2, 2024
1 parent 39ffe68 commit 2ee127e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions runtime/krest/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl SafeCallFilter {
/// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM
/// instruction.
pub fn allow_base_call(call: &RuntimeCall) -> bool {
match call {
matches!(call,
RuntimeCall::System(..) |
RuntimeCall::Balances(..) |
RuntimeCall::Vesting(..) |
Expand All @@ -207,9 +207,8 @@ impl SafeCallFilter {
RuntimeCall::Multisig(
pallet_multisig::Call::approve_as_multi { .. } |
pallet_multisig::Call::cancel_as_multi { .. },
) => true,
_ => false,
}
)
)
}
/// Checks whether composite call is allowed to be executed via `Transact` XCM instruction.
///
Expand Down
7 changes: 3 additions & 4 deletions runtime/peaq-dev/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl SafeCallFilter {
/// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM
/// instruction.
pub fn allow_base_call(call: &RuntimeCall) -> bool {
match call {
matches!(call,
RuntimeCall::System(..) |
RuntimeCall::Balances(..) |
RuntimeCall::Vesting(..) |
Expand All @@ -207,9 +207,8 @@ impl SafeCallFilter {
RuntimeCall::Multisig(
pallet_multisig::Call::approve_as_multi { .. } |
pallet_multisig::Call::cancel_as_multi { .. },
) => true,
_ => false,
}
)
)
}
/// Checks whether composite call is allowed to be executed via `Transact` XCM instruction.
///
Expand Down
7 changes: 3 additions & 4 deletions runtime/peaq/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl SafeCallFilter {
/// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM
/// instruction.
pub fn allow_base_call(call: &RuntimeCall) -> bool {
match call {
matches!(call,
RuntimeCall::System(..) |
RuntimeCall::Balances(..) |
RuntimeCall::Vesting(..) |
Expand All @@ -207,9 +207,8 @@ impl SafeCallFilter {
RuntimeCall::Multisig(
pallet_multisig::Call::approve_as_multi { .. } |
pallet_multisig::Call::cancel_as_multi { .. },
) => true,
_ => false,
}
)
)
}
/// Checks whether composite call is allowed to be executed via `Transact` XCM instruction.
///
Expand Down

0 comments on commit 2ee127e

Please sign in to comment.