forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicate API on
Types
(bytecodealliance#1837)
* Remove duplicate API on `Types` This commit removes the duplicate API of `Types` and `TypesRef` in the `wasmparser` crate by removing the API on `Types`. The source of truth is the one on `TypesRef` and maintaining this duplication is a bit of a burden as it's a lot of copy/pasted code. It's hoped that users can instead use `.as_ref()` "early on" which will enable the same usage as before. Ideally this would be a `Deref` impl but due to how `Deref` works that's not possible right now. * Update tests * Fix doc tests
- Loading branch information
1 parent
42e1c77
commit d4532cb
Showing
9 changed files
with
48 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.