From 432129fcfe47abe83f5f20d544a4f14686921c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=BC=C3=9F?= Date: Mon, 14 Oct 2019 20:28:54 +0200 Subject: fix warnings as well as issues with the cache dir --- src/lex/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lex/mod.rs') diff --git a/src/lex/mod.rs b/src/lex/mod.rs index fe9c421..b21bafb 100644 --- a/src/lex/mod.rs +++ b/src/lex/mod.rs @@ -131,7 +131,7 @@ pub fn lexer(input: &str, prev_ans: Option) -> Result, CalcError for letter in input.chars() { match letter { - '0'...'9' | '.' => { + '0'..='9' | '.' => { if !char_vec.is_empty() { if FUNCTIONS.get(&char_vec[..]).is_some() { return Err(CalcError::Syntax(format!( @@ -174,7 +174,7 @@ pub fn lexer(input: &str, prev_ans: Option) -> Result, CalcError last_char_is_op = false; result.push(Token::Num(prev_ans.unwrap())); } - 'a'...'z' | 'A'...'Z' => { + 'a'..='z' | 'A'..='Z' => { let parse_num = num_vec.parse::().ok(); if let Some(x) = parse_num { result.push(Token::Num(x)); -- cgit v1.2.3