Skip to content

Commit

Permalink
Standardize placement of impl Serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Jan 1, 2024
1 parent 1a64daf commit 3bb1a03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nautilus_core/model/src/data/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ impl QuoteTick {
}
}

impl Serializable for QuoteTick {}

impl Display for QuoteTick {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(
Expand All @@ -206,6 +204,8 @@ impl Display for QuoteTick {
}
}

impl Serializable for QuoteTick {}

////////////////////////////////////////////////////////////////////////////////
// Stubs
////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions nautilus_core/model/src/data/ticker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ impl Ticker {
}
}

impl Serializable for Ticker {}

impl Display for Ticker {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(
Expand All @@ -63,3 +61,5 @@ impl Display for Ticker {
)
}
}

impl Serializable for Ticker {}
4 changes: 2 additions & 2 deletions nautilus_core/model/src/data/trade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ impl TradeTick {
}
}

impl Serializable for TradeTick {}

impl Display for TradeTick {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(
Expand All @@ -159,6 +157,8 @@ impl Display for TradeTick {
}
}

impl Serializable for TradeTick {}

////////////////////////////////////////////////////////////////////////////////
// Stubs
////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 3bb1a03

Please sign in to comment.