diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-19 15:58:10 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-19 18:13:51 +0200 |
commit | 7ecf1c6868f28b4afa403db385ac5e8538961fa0 (patch) | |
tree | fd22aee8a881e5632f811aa0f935201f4e411f99 /openpgp/src/crypto/aead.rs | |
parent | 9ba3972b9bef03a446c1b53385ef1313c492147a (diff) |
buffered-reader: Make Generic::reader private and add accessors.
Diffstat (limited to 'openpgp/src/crypto/aead.rs')
-rw-r--r-- | openpgp/src/crypto/aead.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs index bbeb13bd..d6b937b4 100644 --- a/openpgp/src/crypto/aead.rs +++ b/openpgp/src/crypto/aead.rs @@ -480,16 +480,16 @@ impl<'a> BufferedReader<Cookie> for BufferedReaderDecryptor<'a> { } fn get_mut(&mut self) -> Option<&mut dyn BufferedReader<Cookie>> { - Some(&mut self.reader.reader.source) + Some(&mut self.reader.reader_mut().source) } fn get_ref(&self) -> Option<&dyn BufferedReader<Cookie>> { - Some(&self.reader.reader.source) + Some(&self.reader.reader_ref().source) } fn into_inner<'b>(self: Box<Self>) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where Self: 'b { - Some(self.reader.reader.source.as_boxed()) + Some(self.reader.into_reader().source.as_boxed()) } fn cookie_set(&mut self, cookie: Cookie) -> Cookie { |