From 6da20cbfaf93c732a522dc2ffa903ef318354f53 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 29 Dec 2015 03:33:50 -0800 Subject: [PATCH] Address compiler warnings --- src/parser.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index a1e6c21..5c3adef 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,5 +1,4 @@ use std::iter::Peekable; -use std::slice::Iter; use std::vec::IntoIter; use tokenizer::Token; @@ -80,7 +79,7 @@ impl Parser { let err = format!("Expected NumLiteral, but got {:?}", t); Err(ParseError { err: err }) }, - Nome => { + None => { let err = format!("Expected NumLiteral but got end of input"); Err(ParseError { err: err }) } @@ -141,7 +140,7 @@ impl Parser { } pub fn parse(input: Vec) -> ParseResult { - let mut iter = input.into_iter().peekable(); + let iter = input.into_iter().peekable(); let mut parser = Parser { tokens: iter }; return parser.parse(); }