Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syan095 committed Sep 14, 2023
1 parent 1b561e4 commit 24aba2d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions state-chain/pallets/cf-witnesser/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ impl_mock_runtime_safe_mode! { witnesser: pallet_cf_witness::PalletSafeMode }
pub struct MockCallFilter;
impl CallDispatchFilter<RuntimeCall> for MockCallFilter {
fn should_dispatch(_call: &RuntimeCall) -> bool {
match MockSafeModeStorage::get().witnesser {
pallet_cf_witness::PalletSafeMode::CodeGreen => true,
_ => false,
}
matches!(MockSafeModeStorage::get().witnesser, pallet_cf_witness::PalletSafeMode::CodeGreen)
}
}

Expand Down

0 comments on commit 24aba2d

Please sign in to comment.