diff --git a/Cargo.toml b/Cargo.toml index 0d1cc64..e5793ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "versioned-binary-serialization" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/version.rs b/src/version.rs index 03f91c8..44d6019 100644 --- a/src/version.rs +++ b/src/version.rs @@ -44,10 +44,12 @@ pub trait StaticVersionType: Sync + Send + Clone + Copy + Debug + private::Seale minor: Self::MINOR, } } + + fn instance() -> Self; } #[derive(Clone, Copy, Display)] -pub struct StaticVersion; +pub struct StaticVersion {} impl StaticVersionType for StaticVersion { const MAJOR: u16 = MAJOR; @@ -59,6 +61,10 @@ impl StaticVersionType for StaticVersion Self { + Self {} + } } impl Debug for StaticVersion {