Browse Source

Refer to symbols within `std::fmt` via `fmt::`

upload-correct-windows-binary
Thomas Eizinger 3 years ago
parent
commit
7b8b80052a
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 10
      daemon/src/model/cfd.rs

10
daemon/src/model/cfd.rs

@ -10,7 +10,7 @@ use rocket::request::FromParam;
use rust_decimal::Decimal;
use rust_decimal_macros::dec;
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};
use std::fmt;
use std::ops::RangeInclusive;
use std::time::{Duration, SystemTime};
use uuid::Uuid;
@ -24,8 +24,8 @@ impl Default for OrderId {
}
}
impl Display for OrderId {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
impl fmt::Display for OrderId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.0.fmt(f)
}
}
@ -297,8 +297,8 @@ impl CfdState {
}
}
impl Display for CfdState {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
impl fmt::Display for CfdState {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
CfdState::OutgoingOrderRequest { .. } => {
write!(f, "Request sent")

Loading…
Cancel
Save