Add patch to liana version

The struct will be imported by the gui which
may need one day to increase the patch version number.
This commit is contained in:
edouard 2023-02-02 14:43:04 +01:00
parent c4981fce5a
commit 5e79c05c54

View File

@ -67,15 +67,20 @@ fn setup_panic_hook() {
pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}
impl fmt::Display for Version {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}.{}", self.major, self.minor)
write!(f, "{}.{}.{}", self.major, self.minor, self.patch)
}
}
pub const VERSION: Version = Version { major: 0, minor: 1 };
pub const VERSION: Version = Version {
major: 0,
minor: 1,
patch: 0,
};
#[derive(Debug)]
pub enum StartupError {