Don't need clone() here

This commit is contained in:
greg 2018-02-11 16:45:26 -08:00
parent eca2218f6a
commit a452bccd1c

View File

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