Don't need clone() here

This commit is contained in:
greg 2018-02-11 16:45:26 -08:00
parent 99e5d86764
commit 4d0bfa2a52

View File

@ -183,7 +183,7 @@ fn handle_alphabetic(c: char, input: &mut CharIter) -> TokenType {
} }
match KEYWORDS.get(buf.as_str()) { match KEYWORDS.get(buf.as_str()) {
Some(kw) => TokenType::Keyword(kw.clone()), Some(kw) => TokenType::Keyword(*kw),
None => TokenType::Identifier(Rc::new(buf)), None => TokenType::Identifier(Rc::new(buf)),
} }
} }