Don't need clone() here
This commit is contained in:
parent
eca2218f6a
commit
a452bccd1c
@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user