Fix unnecessary dereference in editor example
This commit is contained in:
parent
86d396cf8b
commit
8f8528a4cc
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ mod highlighter {
|
||||||
.find_syntax_by_token(&settings.token)
|
.find_syntax_by_token(&settings.token)
|
||||||
.unwrap_or_else(|| syntaxes.find_syntax_plain_text());
|
.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 stack = parsing::ScopeStack::new();
|
||||||
|
|
||||||
let theme = highlighting::ThemeSet::load_defaults()
|
let theme = highlighting::ThemeSet::load_defaults()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue