aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
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-core/src/state.rs
parent2088c45075875cd069a2c403ee76028146487bb0 (diff)
clippy lints
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 55ca0673..d2ebca47 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -274,13 +274,13 @@ fn is_word(ch: char) -> bool {
#[derive(Debug, Eq, PartialEq)]
enum Category {
Whitespace,
- EOL,
+ Eol,
Word,
Punctuation,
}
fn categorize(ch: char) -> Category {
if ch == '\n' {
- Category::EOL
+ Category::Eol
} else if ch.is_ascii_whitespace() {
Category::Whitespace
} else if ch.is_ascii_punctuation() {