summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/src/sexp/parse/lexer.rs6
-rw-r--r--openpgp/src/regex/lexer.rs4
2 files changed, 0 insertions, 10 deletions
diff --git a/ipc/src/sexp/parse/lexer.rs b/ipc/src/sexp/parse/lexer.rs
index bd641fef..b4eae979 100644
--- a/ipc/src/sexp/parse/lexer.rs
+++ b/ipc/src/sexp/parse/lexer.rs
@@ -54,12 +54,6 @@ impl<'a> From<Token<'a>> for String {
}
}
-impl<'a> Token<'a> {
- pub fn to_string(self) -> String {
- self.into()
- }
-}
-
#[derive(Debug)]
pub(crate) struct Lexer<'input> {
offset: usize,
diff --git a/openpgp/src/regex/lexer.rs b/openpgp/src/regex/lexer.rs
index ec1344ad..3d6c1e45 100644
--- a/openpgp/src/regex/lexer.rs
+++ b/openpgp/src/regex/lexer.rs
@@ -75,10 +75,6 @@ impl From<Token> for String {
}
impl Token {
- pub fn to_string(self) -> String {
- self.into()
- }
-
pub fn to_char(&self) -> char {
use self::Token::*;
match self {