minor: adjust config name

This commit is contained in:
Aleksey Kladov
2021-05-17 18:37:06 +03:00
parent f9d4a9eaee
commit 41510f437e
8 changed files with 41 additions and 74 deletions

View File

@@ -184,8 +184,8 @@ pub(crate) fn diff_tokens(old: &[SemanticToken], new: &[SemanticToken]) -> Vec<S
}
}
pub(crate) fn type_index(type_: SemanticTokenType) -> u32 {
SUPPORTED_TYPES.iter().position(|it| *it == type_).unwrap() as u32
pub(crate) fn type_index(ty: SemanticTokenType) -> u32 {
SUPPORTED_TYPES.iter().position(|it| *it == ty).unwrap() as u32
}
#[cfg(test)]