From 19cd8bbe96980f5c259b968e0412f84c12d9ae38 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 28 May 2020 14:07:09 +0200 Subject: openpgp: Align PacketPileParser::recursion_depth with PacketParser's --- openpgp/src/parse/packet_pile_parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp/src/parse/packet_pile_parser.rs') diff --git a/openpgp/src/parse/packet_pile_parser.rs b/openpgp/src/parse/packet_pile_parser.rs index acec01e8..7085a66c 100644 --- a/openpgp/src/parse/packet_pile_parser.rs +++ b/openpgp/src/parse/packet_pile_parser.rs @@ -218,9 +218,9 @@ impl<'a> PacketPileParser<'a> { /// /// A top-level packet has a recursion depth of 0. Packets in a /// top-level container have a recursion depth of 1. Etc. - pub fn recursion_depth(&self) -> Option { + pub fn recursion_depth(&self) -> Option { if let PacketParserResult::Some(ref pp) = self.ppr { - Some(pp.recursion_depth() as u8) + Some(pp.recursion_depth()) } else { None } -- cgit v1.2.3