summaryrefslogtreecommitdiffstats
path: root/openpgp/src/tpk/parser/lexer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/tpk/parser/lexer.rs')
-rw-r--r--openpgp/src/tpk/parser/lexer.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/openpgp/src/tpk/parser/lexer.rs b/openpgp/src/tpk/parser/lexer.rs
index fa43a45c..775edaa8 100644
--- a/openpgp/src/tpk/parser/lexer.rs
+++ b/openpgp/src/tpk/parser/lexer.rs
@@ -3,11 +3,13 @@ use std::fmt;
use crate::Error;
use crate::Packet;
use crate::packet::Tag;
-use crate::tpk::KeyBinding;
+use crate::tpk::SubkeyBinding;
use crate::tpk::UserIDBinding;
use crate::tpk::UserAttributeBinding;
use crate::tpk::UnknownBinding;
+use crate::packet::key;
+
// The type of the parser's input.
//
// The parser iterators over tuples consisting of the token's starting
@@ -49,7 +51,7 @@ pub enum Token {
/// public. But, since this module is not public, it will not
/// actually be exported to used of the library.
pub enum Component {
- KeyBinding(KeyBinding),
+ SubkeyBinding(SubkeyBinding<key::PublicParts>),
UserIDBinding(UserIDBinding),
UserAttributeBinding(UserAttributeBinding),
UnknownBinding(UnknownBinding),