aboutsummaryrefslogtreecommitdiff
path: root/helix-syntax/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-01 08:37:31 +0000
committerBlaž Hrastnik2021-03-01 08:37:31 +0000
commita16c6e25852d985d90e56981a3aba62be012071d (patch)
tree29f1b80c7fe8446212190b7f22f00edbcd3099aa /helix-syntax/src
parent2088c45075875cd069a2c403ee76028146487bb0 (diff)
clippy lints
Diffstat (limited to 'helix-syntax/src')
-rw-r--r--helix-syntax/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/helix-syntax/src/lib.rs b/helix-syntax/src/lib.rs
index 11a6f840..64fe1023 100644
--- a/helix-syntax/src/lib.rs
+++ b/helix-syntax/src/lib.rs
@@ -13,7 +13,7 @@ macro_rules! mk_extern {
macro_rules! mk_enum {
( $( $camel:ident ),* ) => {
#[derive(Clone, Copy, Debug, PartialEq)]
- pub enum LANG {
+ pub enum Lang {
$(
$camel,
)*
@@ -25,11 +25,11 @@ macro_rules! mk_enum {
macro_rules! mk_get_language {
( $( ($camel:ident, $name:ident) ),* ) => {
#[must_use]
- pub fn get_language(lang: LANG) -> Language {
+ pub fn get_language(lang: Lang) -> Language {
unsafe {
match lang {
$(
- LANG::$camel => $name(),
+ Lang::$camel => $name(),
)*
}
}
@@ -41,10 +41,10 @@ macro_rules! mk_get_language {
macro_rules! mk_get_language_name {
( $( $camel:ident ),* ) => {
#[must_use]
- pub const fn get_language_name(lang: LANG) -> &'static str {
+ pub const fn get_language_name(lang: Lang) -> &'static str {
match lang {
$(
- LANG::$camel => stringify!($camel),
+ Lang::$camel => stringify!($camel),
)*
}
}