From b57dbdd6e5e693aaf1811eebb851e6882fe0aa29 Mon Sep 17 00:00:00 2001 From: Yason Khaburzaniya Date: Mon, 11 Nov 2024 14:04:20 -0800 Subject: [PATCH] fix: use reference to avoid compile error --- core/src/mast/serialization/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mast/serialization/mod.rs b/core/src/mast/serialization/mod.rs index 2c98c75c6..0badd7fa3 100644 --- a/core/src/mast/serialization/mod.rs +++ b/core/src/mast/serialization/mod.rs @@ -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();