diff options
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r-- | openpgp/src/parse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 1ecf63b2..1b2333a0 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -4002,9 +4002,9 @@ impl <'a> PacketParser<'a> { /// /// This function returns a `PacketParser` for the first packet in /// the stream. - pub(crate) fn from_buffered_reader(bio: Box<dyn BufferedReader<Cookie> + 'a>) + pub(crate) fn from_cookie_reader(bio: Box<dyn BufferedReader<Cookie> + 'a>) -> Result<PacketParserResult<'a>> { - PacketParserBuilder::from_buffered_reader(bio)?.build() + PacketParserBuilder::from_cookie_reader(bio)?.build() } /// Returns the reader stack, replacing it with a |