Skip to content

Commit

Permalink
Fix unnecessary dereference in editor example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 17, 2023
1 parent 86d396c commit 8f8528a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/editor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ mod highlighter {
.find_syntax_by_token(&settings.token)
.unwrap_or_else(|| syntaxes.find_syntax_plain_text());

let parser = parsing::ParseState::new(&syntax);
let parser = parsing::ParseState::new(syntax);
let stack = parsing::ScopeStack::new();

let theme = highlighting::ThemeSet::load_defaults()
Expand Down

0 comments on commit 8f8528a

Please sign in to comment.