summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/partial_body.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2018-06-01 10:50:57 +0200
committerNeal H. Walfield <neal@pep.foundation>2018-06-06 11:12:11 +0200
commit642f96ae9aa56a2bd497c9aa7fc6be88bbc0989d (patch)
treefd9ef8922b4d57b4cb62e73eaa72d2df8c199cf5 /openpgp/src/parse/partial_body.rs
parent5d2c20e2b5b93f5dd74b0faf016d67afc631b903 (diff)
openpgp: Avoid making BufferedReader part of our public API
- The `BufferedReader` trait is primarily an implementation detail. Thus, we avoid exporting Foo::from_buffered_reader constructors, and making public structures generic over `BufferedReader`.
Diffstat (limited to 'openpgp/src/parse/partial_body.rs')
-rw-r--r--openpgp/src/parse/partial_body.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/partial_body.rs b/openpgp/src/parse/partial_body.rs
index 033f6e24..91edb1fa 100644
--- a/openpgp/src/parse/partial_body.rs
+++ b/openpgp/src/parse/partial_body.rs
@@ -12,7 +12,7 @@ const TRACE : bool = false;
/// A `BufferedReader` that transparently handles OpenPGP's chunking
/// scheme. This implicitly implements a limitor.
-pub struct BufferedReaderPartialBodyFilter<T: BufferedReader<Cookie>> {
+pub(crate) struct BufferedReaderPartialBodyFilter<T: BufferedReader<Cookie>> {
// The underlying reader.
reader: T,