diff --git a/src/lazy/expanded/macro_evaluator.rs b/src/lazy/expanded/macro_evaluator.rs index 4137a647..9afe3686 100644 --- a/src/lazy/expanded/macro_evaluator.rs +++ b/src/lazy/expanded/macro_evaluator.rs @@ -1188,7 +1188,7 @@ impl<'top, D: Decoder> MakeFieldExpansion<'top, D> { .map_err(|_| { IonError::decoding_error("`make_field`'s first argument must be a text value") }) - .map(|text| SymbolRef::with_text(text))?; + .map(SymbolRef::with_text)?; let value = value_expr.evaluate_singleton_in(environment)?; let field = LazyExpandedField::new(LazyExpandedFieldName::MakeField(name), value); let lazy_expanded_struct = LazyExpandedStruct::from_make_field(context, field); diff --git a/src/lazy/expanded/struct.rs b/src/lazy/expanded/struct.rs index a7f97b1e..6871d796 100644 --- a/src/lazy/expanded/struct.rs +++ b/src/lazy/expanded/struct.rs @@ -92,7 +92,7 @@ impl<'top, D: Decoder> LazyExpandedFieldName<'top, D> { name.read()?.resolve("a field name", *context) } LazyExpandedFieldName::TemplateName(_template_ref, symbol_ref) => Ok(*symbol_ref), - LazyExpandedFieldName::MakeField(symbol) => Ok((*symbol).into()), + LazyExpandedFieldName::MakeField(symbol) => Ok(*symbol), } }