summaryrefslogtreecommitdiffstats
path: root/openpgp/src/message
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/message')
-rw-r--r--openpgp/src/message/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/message/lexer.rs b/openpgp/src/message/lexer.rs
index e1ac7194..8e6f8910 100644
--- a/openpgp/src/message/lexer.rs
+++ b/openpgp/src/message/lexer.rs
@@ -70,7 +70,7 @@ impl<'input> Iterator for Lexer<'input> {
type Item = LexerItem<Token, usize, LexicalError>;
fn next(&mut self) -> Option<Self::Item> {
- let n = self.iter.next().map(|(pos, tok)| (pos, tok.clone()));
+ let n = self.iter.next().map(|(pos, tok)| (pos, *tok));
if let Some((pos, tok)) = n {
Some(Ok((pos, tok, pos)))
} else {