Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed Apr 17, 2024
1 parent 1ef6136 commit 9faccb4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions runtime/regionx/src/ismp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ impl IsmpModule for ProxyModule {

#[allow(clippy::match_single_binding)]
match pallet_id {
pallet_regions::PALLET_ID => {
pallet_regions::IsmpModuleCallback::<Runtime>::default().on_response(response)
},
pallet_regions::PALLET_ID =>
pallet_regions::IsmpModuleCallback::<Runtime>::default().on_response(response),
_ => Err(Error::ImplementationSpecific("Destination module not found".to_string())),
}
}
Expand All @@ -104,9 +103,8 @@ impl IsmpModule for ProxyModule {

#[allow(clippy::match_single_binding)]
match pallet_id {
pallet_regions::PALLET_ID => {
pallet_regions::IsmpModuleCallback::<Runtime>::default().on_timeout(timeout)
},
pallet_regions::PALLET_ID =>
pallet_regions::IsmpModuleCallback::<Runtime>::default().on_timeout(timeout),
// instead of returning an error, do nothing. The timeout is for a connected chain.
_ => Ok(()),
}
Expand Down

0 comments on commit 9faccb4

Please sign in to comment.