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

Refactor: None is not an ImportModule #3039

Merged
merged 5 commits into from
Aug 21, 2022

Conversation

lukaslihotzki
Copy link
Contributor

ImportModule::None is neither a module nor an import. (What would its contents or its from part be?) Therefore, the correct name for ImportModule would be ImportModuleOption, or Option<ImportModule> in idiomatic Rust. Also, this change allows to enforce non-None modules by the type system, which is handy, but not strictly needed, for #3019.

@Liamolucko Liamolucko merged commit d1e200f into rustwasm:main Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants