Skip to content

Commit

Permalink
Use as_ref in find_canonical_property when returning from Some path
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Oct 29, 2024
1 parent dd60149 commit 89819f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbx_binary/src/deserializer/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn find_canonical_property<'de>(
);

Some(CanonicalProperty {
name: canonical_name.clone().into(),
name: canonical_name.as_ref().into(),
ty: canonical_type,
migration,
})
Expand Down

0 comments on commit 89819f3

Please sign in to comment.