-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasmtime: remove
drop(&mut ...)
used to silence warnings (#6278)
The `Config` needs to be mutable while building a compiler, but in a build configuration without a compiler, declaring it as `mut` produces a warning since nothing else needs that. I found the existing workaround for this warning confusing, so this PR removes `mut` from the binding for `config` and instead re-binds the variable in builds where we call `build_compiler`.
- Loading branch information
1 parent
5113739
commit c7b83e8
Showing
2 changed files
with
4 additions
and
5 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