[INFO]: ๐ฏ Checking for the Wasm target...
[INFO]: ๐ Compiling to Wasm...
Compiling dcapal-optimizer-wasm v0.3.0 (/Users/corrado/Documents/dcapal/dcapal-optimizer-wasm)
error[E0499]: cannot borrow `solution.assets` as mutable more than once at a time
--> dcapal-optimizer-wasm/src/optimize/advanced.rs:267:51
|
184 | let mut open_assets = under_allocated_view(&mut solution.assets);
| -------------------- first mutable borrow occurs here
...
267 | open_assets = refresh_open_assets(&mut solution.assets, &budget_left);
| ----------- ^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
| |
| first borrow might be used here, when `open_assets` is dropped and runs the `Drop` code for type `Vec`
For more information about this error, try `rustc --explain E0499`.
error: could not compile `dcapal-optimizer-wasm` due to previous error
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
full command: cd "/Users/corrado/Documents/dcapal/dcapal-optimizer-wasm" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"