Commit d9e8389
committed
fix(build-core): resolve mutable reference issues in WAST test runner
Fix compilation errors in the WAST test runner where module.encode() requires
mutable references but the function signature only accepted immutable references.
Changes:
- Updated execute_directive to accept &mut WastDirective instead of &WastDirective
- Changed wast.directives.iter() to iter_mut() to provide mutable references
- Made wast variable mutable in run_wast_content function
This allows the encode() method to be called successfully on WAST modules,
resolving the "cannot borrow as mutable" compilation errors.1 parent 05b01de commit d9e8389
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments