Skip to content

Commit

Permalink
clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Dec 11, 2024
1 parent 7e196d3 commit 6db49c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lazy/expanded/macro_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/lazy/expanded/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 6db49c5

Please sign in to comment.