summaryrefslogtreecommitdiff
path: root/src/widgets/luaeditor/treesitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/luaeditor/treesitter.rs')
-rw-r--r--src/widgets/luaeditor/treesitter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/luaeditor/treesitter.rs b/src/widgets/luaeditor/treesitter.rs
index 1a4dc04..1474434 100644
--- a/src/widgets/luaeditor/treesitter.rs
+++ b/src/widgets/luaeditor/treesitter.rs
@@ -1,6 +1,6 @@
use tree_sitter_highlight::{Highlight, HighlightConfiguration, HighlightEvent, Highlighter};
-static HIGHLIGHT_NAMES: [&'static str; 29] = [
+static HIGHLIGHT_NAMES: [&str; 29] = [
"attribute",
"boolean",
"comment",
@@ -71,7 +71,7 @@ pub fn highlighter_split<'a>(
splits.push((current, "\n"));
}
- if !group.ends_with("\n") {
+ if !group.ends_with('\n') {
splits.pop();
}
}