server/src/main.rs fails to build — 11 cannot borrow as mutable errors on use_signal bindings #162

Open
opened 2026-04-26 12:38:08 +00:00 by nabil_salah · 0 comments
Member

After running cargo update (which moved Dioxus and several other deps to newer commits), make run fails to compile archipelagos_server for wasm32-unknown-unknown with 11 E0596: cannot borrow X as mutable, as it is not declared as mutable errors. All errors are on Signal::set(...) calls whose backing let X = use_signal(...) binding is missing mut. The compiler's own suggestion — add mut to each binding — resolves the build.

image

After running ```cargo update``` (which moved Dioxus and several other deps to newer commits), ```make run``` fails to compile archipelagos_server for wasm32-unknown-unknown with 11 E0596: cannot borrow X as mutable, as it is not declared as mutable errors. All errors are on Signal::set(...) calls whose backing let X = use_signal(...) binding is missing mut. The compiler's own suggestion — add mut to each binding — resolves the build. ![image](/attachments/b07642ce-c181-4701-b151-e9e4837ddec7)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos#162
No description provided.