aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/chars.rs
diff options
context:
space:
mode:
authorOmnikar2022-01-23 07:37:23 +0000
committerGitHub2022-01-23 07:37:23 +0000
commitf064894e5778071ef8cc563380f48cfdd9acba59 (patch)
tree18eb4c743e04f6b83268664ea869f3bbc676a2e2 /helix-core/src/chars.rs
parente2d2f19fd02419b8d144ae7a8a359d31bd773af7 (diff)
Fix Clippy lints in tests (#1563)
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-core/src/chars.rs')
-rw-r--r--helix-core/src/chars.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/helix-core/src/chars.rs b/helix-core/src/chars.rs
index c8e5efbd..54991574 100644
--- a/helix-core/src/chars.rs
+++ b/helix-core/src/chars.rs
@@ -91,12 +91,11 @@ mod test {
#[test]
fn test_categorize() {
- const EOL_TEST_CASE: &'static str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
- const WORD_TEST_CASE: &'static str =
- "_hello_world_あいうえおー12345678901234567890";
- const PUNCTUATION_TEST_CASE: &'static str =
+ const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
+ const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
+ const PUNCTUATION_TEST_CASE: &str =
"!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";
- const WHITESPACE_TEST_CASE: &'static str = "      ";
+ const WHITESPACE_TEST_CASE: &str = "      ";
for ch in EOL_TEST_CASE.chars() {
assert_eq!(CharCategory::Eol, categorize_char(ch));