Skip to content

Commit

Permalink
Fix clippy lints in iced_highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 19, 2023
1 parent be340a8 commit 93d6f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions highlighter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use syntect::highlighting;
use syntect::parsing;

static SYNTAXES: Lazy<parsing::SyntaxSet> =
Lazy::new(|| parsing::SyntaxSet::load_defaults_nonewlines());
Lazy::new(parsing::SyntaxSet::load_defaults_nonewlines);

static THEMES: Lazy<highlighting::ThemeSet> =
Lazy::new(|| highlighting::ThemeSet::load_defaults());
Lazy::new(highlighting::ThemeSet::load_defaults);

const LINES_PER_SNAPSHOT: usize = 50;

Expand Down Expand Up @@ -77,7 +77,7 @@ impl highlighter::Highlighter for Highlighter {
let (parser, stack) =
self.caches.last().cloned().unwrap_or_else(|| {
(
parsing::ParseState::new(&self.syntax),
parsing::ParseState::new(self.syntax),
parsing::ScopeStack::new(),
)
});
Expand Down

0 comments on commit 93d6f74

Please sign in to comment.