chiark / gitweb /
shapelib: Remove the default for `centre`
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Mar 2021 22:58:52 +0000 (22:58 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Mar 2021 22:58:52 +0000 (22:58 +0000)
This is a useless default.  We're about to introduce a non-useless
one, but removing this useless one first proves we're not using it.

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

index 3a2297e255747a8f6d41137fa6dbc43bffe6ba57..8ae0f8d3f8b95b81a989da53d3f1d6625d64cb00 100644 (file)
@@ -110,8 +110,6 @@ pub struct GroupDetails {
   /// scale by different amounts in x and y.
   pub orig_size: Vec<f64>,
 
-  #[serde(default)]
-  /// Default if not supplied is `[0,0]`.
   pub centre: [f64; 2],
 
   #[serde(default)]