From 64435689fc497fa4a6c8142e5f540d45242b89dc Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 27 Dec 2016 11:30:08 -0700 Subject: [PATCH] Remove semicolon; add &self to generic_error() --- src/lexer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index 0a25113..fbf5324 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs @@ -106,8 +106,8 @@ impl Lexer { Ok(Some(token)) } - fn generic_error(c: char) -> StateResult { - Err(self.error_string(format!("Invalid token character: {}", c))); + fn generic_error(&self, c: char) -> StateResult { + Err(self.error_string(format!("Invalid token character: {}", c))) } }