Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a wasmparser -> wasm-encoder trait #1628

Merged
merged 15 commits into from
Jun 25, 2024
Prev Previous commit
Next Next commit
Fix Reencode impl
  • Loading branch information
juntyr committed Jun 25, 2024
commit 645d835929d919b3815e1056df2b8f6ec88d8cc5
3 changes: 3 additions & 0 deletions crates/wit-component/src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use indexmap::{IndexMap, IndexSet};
use std::{
borrow::Cow,
collections::{HashMap, HashSet},
convert::Infallible,
mem,
ops::Deref,
};
Expand Down Expand Up @@ -1054,6 +1055,8 @@ struct Encoder {
}

impl Reencode for Encoder {
type Error = Infallible;

fn type_index(&mut self, i: u32) -> u32 {
self.types.remap(i)
}
Expand Down