diff --git a/libs/mocks/src/liquidity_pools_gateway_routers.rs b/libs/mocks/src/liquidity_pools_gateway_routers.rs index 7064a97be6..429e1aa8bc 100644 --- a/libs/mocks/src/liquidity_pools_gateway_routers.rs +++ b/libs/mocks/src/liquidity_pools_gateway_routers.rs @@ -34,8 +34,8 @@ pub mod pallet { } impl MockedRouter for Pallet { - type Sender = T::AccountId; type Message = MessageMock; + type Sender = T::AccountId; fn init() -> DispatchResult { execute_call!(()) @@ -73,8 +73,8 @@ impl RouterMock { } } -/// Here we implement the actual Router trait for the `RouterMock` which in turn calls -/// the `MockedRouter` trait implementation. +/// Here we implement the actual Router trait for the `RouterMock` which in turn +/// calls the `MockedRouter` trait implementation. impl Router for RouterMock { type Message = MessageMock; type Sender = T::AccountId; @@ -90,9 +90,10 @@ impl Router for RouterMock { /// A mocked Router trait that emulates the actual Router trait but without /// the inclusion of &self in the function parameters. This allows us to have -/// the mocked Routers pallet (defined above) implementing a Router-like trait (and not -/// just like regular pallet functions) when defining the mocked calls, which is implicitly -/// required by mock-builder or else it fails with `Location must have trait info"`. +/// the mocked Routers pallet (defined above) implementing a Router-like trait +/// (and not just like regular pallet functions) when defining the mocked calls, +/// which is implicitly required by mock-builder or else it fails with `Location +/// must have trait info"`. trait MockedRouter { /// The sender type of the outbound message. type Sender; @@ -105,4 +106,4 @@ trait MockedRouter { /// Send the message to the router's destination. fn send(sender: Self::Sender, message: Self::Message) -> DispatchResult; -} \ No newline at end of file +}