diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4917c01..4010364 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,15 +39,17 @@ jobs: rustup default stable shell: bash - name: Build without default features - run: cargo check --no-default-features + run: cargo check --workspace --no-default-features - name: Build the `wat` feature - run: cargo check --no-default-features --features wat + run: cargo check --workspace --no-default-features --features wat - name: Build the `wit` feature - run: cargo check --no-default-features --features wit + run: cargo check --workspace --no-default-features --features wit - name: Build the `registry` feature - run: cargo check --no-default-features --features registry + run: cargo check --workspace --no-default-features --features registry + - name: Build the `serde` feature + run: cargo check --workspace --no-default-features --features serde - name: Build all features - run: cargo check --all-features + run: cargo check --workspace --all-features rustfmt: name: Format source code diff --git a/crates/wac-types/src/component.rs b/crates/wac-types/src/component.rs index 6436e10..f62038b 100644 --- a/crates/wac-types/src/component.rs +++ b/crates/wac-types/src/component.rs @@ -100,7 +100,7 @@ impl fmt::Display for WorldId { pub struct ModuleTypeId(Id); #[cfg(feature = "serde")] -impl serde::Serialize for ModuleId { +impl serde::Serialize for ModuleTypeId { fn serialize(&self, serializer: S) -> Result { self.0.index().serialize(serializer) }