Skip to content

Commit

Permalink
Hide UnknownFields::fields field
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Sep 16, 2019
1 parent e9f13aa commit 8ad35ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protobuf/src/unknown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ pub struct UnknownFields {
/// The map.
// option is needed, because HashMap constructor performs allocation,
// and very expensive
// TODO: hide
pub fields: Option<Box<HashMap<u32, UnknownValues>>>,
fields: Option<Box<HashMap<u32, UnknownValues>>>,
}

/// Very simple hash implementation of `Hash` for `UnknownFields`.
Expand Down

0 comments on commit 8ad35ec

Please sign in to comment.