Skip to content

Commit 599a96e

Browse files
committed
chore(serde): fix serde conditional compilation
1 parent ac1806c commit 599a96e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
run: cargo check --no-default-features --features wit
4747
- name: Build the `registry` feature
4848
run: cargo check --no-default-features --features registry
49+
- name: Build the `serde` feature
50+
run: cargo check --no-default-features --features serde
4951
- name: Build all features
5052
run: cargo check --all-features
5153

crates/wac-types/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl fmt::Display for WorldId {
100100
pub struct ModuleTypeId(Id<ModuleType>);
101101

102102
#[cfg(feature = "serde")]
103-
impl serde::Serialize for ModuleId {
103+
impl serde::Serialize for ModuleTypeId {
104104
fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
105105
self.0.index().serialize(serializer)
106106
}

0 commit comments

Comments
 (0)