Skip to content

Commit

Permalink
style(finance): Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Jun 6, 2023
1 parent ee7d537 commit ae7c215
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/finance/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ where
pub mod currency {
use serde::{Deserialize, Serialize};

use crate::currency::{AnyVisitor, Currency, equal, Group, MaybeAnyVisitResult, Symbol, SymbolStatic};
use crate::currency::{
equal, AnyVisitor, Currency, Group, MaybeAnyVisitResult, Symbol, SymbolStatic,
};

#[derive(
Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Default, Serialize, Deserialize,
Expand Down Expand Up @@ -50,7 +52,10 @@ pub mod currency {
impl Group for TestCurrencies {
const DESCR: SymbolStatic = "test";

fn contains<C>() -> bool where C: Currency {
fn contains<C>() -> bool
where
C: Currency,
{
equal::<C, Usdc>() || equal::<C, Nls>()
}

Expand Down Expand Up @@ -83,9 +88,11 @@ pub mod currency {
impl Group for TestExtraCurrencies {
const DESCR: SymbolStatic = "test_extra";

fn contains<C>() -> bool where C: Currency {
equal::<C, Usdc>() || equal::<C, Nls>() ||
equal::<C, Dai>()
fn contains<C>() -> bool
where
C: Currency,
{
equal::<C, Usdc>() || equal::<C, Nls>() || equal::<C, Dai>()
}

fn maybe_visit_on_ticker<V>(symbol: Symbol<'_>, visitor: V) -> MaybeAnyVisitResult<V>
Expand Down

0 comments on commit ae7c215

Please sign in to comment.