chiark / gitweb /
mformat 2: Have resolve_square_size return Option
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 May 2022 11:45:51 +0000 (12:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 23:19:17 +0000 (00:19 +0100)
commitf552ee8e7adbcfc628c09db68245a3a02bed053e
tree5247ddcca827ec7bae91022ce16e8e17d0194370
parent0c70eebc988a56c83d5d733d79baeb66a25d439d
mformat 2: Have resolve_square_size return Option

This moves the optional-ness handling into resolve_square_size, and
pushes the error into the call sites.

The mformat 2 callers are going to want to default this, so want an
Option.

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