summaryrefslogtreecommitdiffstats
path: root/tool/src/commands
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-05-06 13:32:13 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-05-06 18:38:19 +0200
commit320884d10326fe186e974352391d51caa5cde571 (patch)
tree141d749c79f46183dfb2bd01e7cd7ae659292921 /tool/src/commands
parentc575a9b4d3d0644457d3a2ddfbfa0160d3490f19 (diff)
openpgp: Streamline iteration over MessageStructure.
- Implement IntoIter and Deref to &'a [MessageLayer<'a>], drop the custom iteration structs.
Diffstat (limited to 'tool/src/commands')
-rw-r--r--tool/src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs
index b1de8fa8..08219286 100644
--- a/tool/src/commands/mod.rs
+++ b/tool/src/commands/mod.rs
@@ -357,7 +357,7 @@ impl<'a> VerificationHelper for VHelper<'a> {
}
fn check(&mut self, structure: MessageStructure) -> Result<()> {
- for layer in structure.iter() {
+ for layer in structure {
match layer {
MessageLayer::Compression { algo } =>
eprintln!("Compressed using {}", algo),