Skip to content

Commit 2bac8a5

Browse files
committed
primitives - market - impl Display for StatusType
1 parent 4419559 commit 2bac8a5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

primitives/src/market.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use chrono::serde::ts_milliseconds;
2+
use chrono::{DateTime, Utc};
23
use serde::{Deserialize, Serialize};
34

4-
use chrono::{DateTime, Utc};
5+
use std::fmt;
56

67
use crate::{BalancesMap, BigNum, Channel};
78

@@ -23,6 +24,12 @@ pub enum StatusType {
2324
Withdraw,
2425
}
2526

27+
impl fmt::Display for StatusType {
28+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
29+
fmt::Debug::fmt(self, f)
30+
}
31+
}
32+
2633
#[derive(Deserialize, Clone, Debug)]
2734
#[serde(rename_all = "camelCase")]
2835
pub struct Status {

0 commit comments

Comments
 (0)