diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-29 17:40:42 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-29 17:59:41 +0100 |
commit | 6c0bf979adb35231ef007a42b7b1d6f7087df86d (patch) | |
tree | 4b392329d4946fa4d138606da138d87764472f2f /openpgp/src/parse/parse.rs | |
parent | ca47192b70870b95296cc1fae2d3dd1df261cd74 (diff) |
buffered-reader: Make Reserve polymorphic.
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r-- | openpgp/src/parse/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index 090fac7e..ca2e266f 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -4056,7 +4056,7 @@ impl<'a> PacketParser<'a> { // An MDC consists of a 1-byte CTB, a 1-byte length // encoding, and a 20-byte hash. let mut reader = buffered_reader::Reserve::with_cookie( - Box::new(reader), 1 + 1 + 20, + reader, 1 + 1 + 20, Cookie::new(self.recursion_depth())); reader.cookie_mut().fake_eof = true; |