From: Ian Jackson Date: Wed, 11 May 2022 23:12:55 +0000 (+0100) Subject: mformat 2: Allow materials_format::Version to contain 2 X-Git-Tag: otter-1.1.0~245 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b79ead9c04a0c9778647d1dbdbdf3afa2ee03920;p=otter.git mformat 2: Allow materials_format::Version to contain 2 Nothing changes in the behaviour yet - nothing checks this - so right now, this format is not functioning as documented. Signed-off-by: Ian Jackson --- diff --git a/src/materials-format.rs b/src/materials-format.rs index 6a01201c..79a64f4d 100644 --- a/src/materials-format.rs +++ b/src/materials-format.rs @@ -14,7 +14,7 @@ pub type Raw = u32; impl Version { pub const MIN: Version = Version(1); - pub const MAX: Version = Version(1); + pub const MAX: Version = Version(2); pub const CURRENT: Version = Version::MAX; } @@ -150,7 +150,8 @@ mod test { check(0, eus(0)); check(1, Ok(Version(1))); - check(2, eus(02)); + check(2, Ok(Version(2))); + check(3, eus(03)); } #[test]