Skip to content

Commit

Permalink
fix clippy error (#1573)
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng JIANG <[email protected]>
  • Loading branch information
GopherJ authored Apr 8, 2022
1 parent ae13e1f commit bf6e10a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/heiko/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ impl_runtime_apis! {
impl pallet_router_rpc_runtime_api::RouterApi<Block, Balance> for Runtime {
fn get_best_route(amount_in: Balance, token_in: CurrencyId, token_out: CurrencyId) -> Result<(Vec<CurrencyId>, Balance), DispatchError> {
let (route, amount) = AMMRoute::get_best_route(amount_in, token_in, token_out)?;
Ok((route, amount.into()))
Ok((route, amount))
}
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/kerria/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@ impl_runtime_apis! {
impl pallet_router_rpc_runtime_api::RouterApi<Block, Balance> for Runtime {
fn get_best_route(amount_in: Balance, token_in: CurrencyId, token_out: CurrencyId) -> Result<(Vec<CurrencyId>, Balance), DispatchError> {
let (route, amount) = AMMRoute::get_best_route(amount_in, token_in, token_out)?;
Ok((route, amount.into()))
Ok((route, amount))
}
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/parallel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ impl_runtime_apis! {
impl pallet_router_rpc_runtime_api::RouterApi<Block, Balance> for Runtime {
fn get_best_route(amount_in: Balance, token_in: CurrencyId, token_out: CurrencyId) -> Result<(Vec<CurrencyId>, Balance), DispatchError> {
let (route, amount) = AMMRoute::get_best_route(amount_in, token_in, token_out)?;
Ok((route, amount.into()))
Ok((route, amount))
}
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/vanilla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,7 @@ impl_runtime_apis! {
impl pallet_router_rpc_runtime_api::RouterApi<Block, Balance> for Runtime {
fn get_best_route(amount_in: Balance, token_in: CurrencyId, token_out: CurrencyId) -> Result<(Vec<CurrencyId>, Balance), DispatchError> {
let (route, amount) = AMMRoute::get_best_route(amount_in, token_in, token_out)?;
Ok((route, amount.into()))
Ok((route, amount))
}
}

Expand Down

0 comments on commit bf6e10a

Please sign in to comment.