chiark / gitweb /
shapelib: Make fields of GroupData private
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 22:34:23 +0000 (23:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 22:34:23 +0000 (23:34 +0100)
This was odd.  It compiles with them private, and it's not serde.
I want to add mformat here, which ought not to be pub here I think?
Anyway, I think this pubness was a mistake.

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

index 281b608c6db0dd7bc8ea0327febdab72f062498f..835f7f315560bc532307dd3b14d740b99081c192 100644 (file)
@@ -24,8 +24,8 @@ pub struct Registry {
 
 #[derive(Debug)]
 pub struct GroupData {
-  pub groupname: String,
-  pub d: GroupDetails,
+  groupname: String,
+  d: GroupDetails,
 }
 
 #[typetag::deserialize(tag="outline")]