libmeld/version.rs
1use core::fmt;
2
3use crate::Version;
4
5impl fmt::Display for Version {
6 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7 write!(f, "{} {} {}", self.data_hash, self.ver, self.tag)
8 }
9}
10
11impl fmt::Debug for Version {
12 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
13 write!(f, "{} {} {}", self.data_hash, self.ver, self.tag)
14 }
15}