1 2 3 4 5 6 7 8 9 10 11 12
use core::fmt::{Display, Formatter, Result}; use super::Currency; impl Display for Currency { fn fmt(&self, f: &mut Formatter) -> Result { let as_str: &str = self.into(); as_str.fmt(f) } }