Skip to content

Commit

Permalink
Update macros/src/to_cbor.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob <[email protected]>
  • Loading branch information
radumarias and cobward authored Sep 23, 2024
1 parent 323e62b commit ba0ec62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/to_cbor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn named_fields(isomdl_path: Ident, ident: Ident, input: FieldsNamed) -> TokenSt
fn to_cbor(self) -> Value {
let map = self.to_ns_map()
.into_iter()
.map(|(k, v)| (Value::Text(k), v.try_into().unwrap()))
.map(|(k, v)| (Value::Text(k), v))
.collect();
Value::Map(map)
}
Expand Down

0 comments on commit ba0ec62

Please sign in to comment.