chiark / gitweb /
mformat 1: Have FaceTransform::from_group_mf1 take the GroupData
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 May 2022 23:46:35 +0000 (00:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 23:18:19 +0000 (00:18 +0100)
commita14c79e152e2659b0c684e1a84993adf960c017e
tree967611b463d0a214439ef5e9c95c4479dfd4b7a6
parenta1c7ea572e420163db154318e6e62037fa3519d9
mformat 1: Have FaceTransform::from_group_mf1 take the GroupData

This gives access to mformat, which is useful for error
reporting (since it allows us to use the standard "can't do that in
this mf version" constructor).

Of course this is an _mf1 function so it doesn't need the actual
value - it could perhaps have made do with a proof token of const
generic type, or something.  But I tried that and it was a palaver.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs