diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-05-28 14:07:09 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-05-28 14:08:20 +0200 |
commit | 19cd8bbe96980f5c259b968e0412f84c12d9ae38 (patch) | |
tree | f8b86194a3beb5a9844c969d25eebeaf4bcc1349 /openpgp | |
parent | 041661b88c5f1f6cc22fea02761804d5ff42515c (diff) |
openpgp: Align PacketPileParser::recursion_depth with PacketParser's
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/parse/packet_pile_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<u8> { + pub fn recursion_depth(&self) -> Option<isize> { if let PacketParserResult::Some(ref pp) = self.ppr { - Some(pp.recursion_depth() as u8) + Some(pp.recursion_depth()) } else { None } |