From 40fad80c55b64924803fd8ed5c87e93fb2b9f19a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 11 May 2022 21:44:42 +0100 Subject: [PATCH] mformat 2: Insist that builtin libraries have an explicit version We don't want to be setting the bad example of a missing `format`, and of course we don't want to be using format=1 either. Signed-off-by: Ian Jackson --- src/shapelib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapelib.rs b/src/shapelib.rs index 83d39f92..d853b3b2 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -910,7 +910,7 @@ impl LibrarySource for BuiltinLibrary<'_> { #[throws(materials_format::VersionError)] fn default_materials_format(&self) -> materials_format::Version { - 1.try_into().unwrap() // TODO + throw!(MFVE::Other("builtin libraries must have explicit version now!")); } } -- 2.30.2