Skip to content

Commit

Permalink
clippy::cloned_instead_of_copied
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Aug 10, 2024
1 parent 843e408 commit e4bf89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) const MAX_KEYWORD_LEN: usize = 17;
pub fn keyword_token(word: &[u8]) -> Option<TokenType> {
KEYWORDS
.get(UncasedStr::new(unsafe { str::from_utf8_unchecked(word) }))
.cloned()
.copied()
}

pub(crate) fn is_identifier(name: &str) -> bool {
Expand Down

0 comments on commit e4bf89f

Please sign in to comment.