sparkfun_openlog/
version.rs1use core::fmt;
2
3#[derive(Clone, Debug)]
4pub struct Version {
5 pub major: u8,
6 pub minor: u8,
7}
8
9impl fmt::Display for Version {
10 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
11 write!(f, "{}.{}", self.major, self.minor)
12 }
13}