Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
e-matteson committed Apr 23, 2024
1 parent 4dc32ae commit e098ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/language/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Language {

pub fn constructs(self, s: &Storage) -> impl Iterator<Item = Construct> {
let constructs = &grammar(s, self.language).constructs;
(&constructs).into_iter().map(move |id| Construct {
constructs.into_iter().map(move |id| Construct {
language: self.language,
construct: id,
})
Expand Down
2 changes: 1 addition & 1 deletion src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl<F: Frontend<Style = Style> + 'static> Runtime<F> {

pub fn language_constructs(&mut self, language: Language) -> Vec<rhai::Dynamic> {
language
.constructs(&self.engine.raw_storage())
.constructs(self.engine.raw_storage())
.map(rhai::Dynamic::from)
.collect()
}
Expand Down

0 comments on commit e098ecf

Please sign in to comment.