chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a14c79e
)
mformat 2: Allow materials_format::Version to contain 2
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 23:12:55 +0000
(
00:12
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 23:18:22 +0000
(
00:18
+0100)
Nothing changes in the behaviour yet - nothing checks this - so right
now, this format is not functioning as documented.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/materials-format.rs
patch
|
blob
|
history
diff --git
a/src/materials-format.rs
b/src/materials-format.rs
index 6a01201cea9f2b9a66385ad4f8eda602dfb9d405..79a64f4d7a88d6622244e191f417a7b3a7565852 100644
(file)
--- 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]