Skip to content

Commit 0df7a51

Browse files
committed
Skip serialization of remapped types.
JSON only supports string keys in maps and the remapped types isn't needed in the `resolve` command output.
1 parent e7da16a commit 0df7a51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/wac-parser/src/resolution

crates/wac-parser/src/resolution/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ pub struct Interface {
394394
///
395395
/// Encoding uses this map to populate the encoded type index map for the
396396
/// original types.
397-
#[serde(skip_serializing_if = "IndexMap::is_empty")]
397+
#[serde(skip)]
398398
pub remapped_types: IndexMap<Type, IndexSet<Type>>,
399399
/// A map from used interface to set of used type export indexes.
400400
#[serde(serialize_with = "serialize_id_key_map")]

0 commit comments

Comments
 (0)