diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-12-13 12:54:05 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-12-13 13:21:58 +0100 |
commit | 5fff08455fdbdcab1dac39456304cc7183059c8d (patch) | |
tree | 38e68364268b2e20dd7225a7ec0b3247ab11d3fa /openpgp/src/packet/literal.rs | |
parent | cb8575e301a90bbdc902c079625fffb7056c3017 (diff) |
openpgp: Make fields of Literal private.
Diffstat (limited to 'openpgp/src/packet/literal.rs')
-rw-r--r-- | openpgp/src/packet/literal.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/literal.rs b/openpgp/src/packet/literal.rs index b86800f6..1862621f 100644 --- a/openpgp/src/packet/literal.rs +++ b/openpgp/src/packet/literal.rs @@ -25,16 +25,16 @@ pub struct Literal { /// CTB packet header fields. pub(crate) common: packet::Common, /// A one-octet field that describes how the data is formatted. - pub(crate) format: DataFormat, + format: DataFormat, /// filename is a string, but strings in Rust are valid UTF-8. /// There is no guarantee, however, that the filename is valid /// UTF-8. Thus, we leave filename as a byte array. It can be /// converted to a string using String::from_utf8() or /// String::from_utf8_lossy(). - pub(crate) filename: Option<Vec<u8>>, + filename: Option<Vec<u8>>, /// A four-octet number that indicates a date associated with the /// literal data. - pub(crate) date: time::Tm, + date: time::Tm, } impl fmt::Debug for Literal { |