diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-10-08 22:23:18 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-10-09 09:38:30 +0200 |
commit | 482f166f799d15601c5739593189b397f20abccd (patch) | |
tree | 41ffdb03f17f30182f5110f525d20ed1a325544e /tool/src/commands/decrypt.rs | |
parent | db3f4d052592249fb4b055bcd669b30d876de3d6 (diff) |
openpgp: Drop redundant recursive_depth field.
- The packet parser's recursive depth can be computed from the path,
which we now track. As such, don't track the recursive depth
separately, just derive it from the path.
Diffstat (limited to 'tool/src/commands/decrypt.rs')
-rw-r--r-- | tool/src/commands/decrypt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs index 1671e5da..c1955f48 100644 --- a/tool/src/commands/decrypt.rs +++ b/tool/src/commands/decrypt.rs @@ -112,7 +112,7 @@ impl<'a> DecryptionHelper for Helper<'a> { fn inspect(&mut self, pp: &PacketParser) -> Result<()> { if let Some(dumper) = self.dumper.as_mut() { dumper.packet(&mut io::stderr(), - pp.recursion_depth as usize, + pp.recursion_depth() as usize, pp.header.clone(), pp.packet.clone(), pp.map.clone(), None)?; } |