Skip to content

Commit

Permalink
fix: use reference to avoid compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
yasonk committed Nov 11, 2024
1 parent eb59ff3 commit b57dbdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mast/serialization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ impl Serializable for MastForest {
// write all decorator data below

let mut decorator_data_builder = DecoratorDataBuilder::new();
for decorator in self.decorators {
decorator_data_builder.add_decorator(&decorator)
for decorator in &self.decorators {
decorator_data_builder.add_decorator(decorator)
}

let (decorator_data, decorator_infos, string_table) = decorator_data_builder.finalize();
Expand Down

0 comments on commit b57dbdd

Please sign in to comment.