summaryrefslogtreecommitdiff
path: root/crates/gipfel-core/src/profile.rs
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 12:35:11 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 12:35:11 +0100
commita436af8b35dacde89ec97e18134b02acf52f159c (patch)
tree9562d5d8e6091aa1f9e5fc05da0ace2fc7f3200c /crates/gipfel-core/src/profile.rs
parent8431ea2ac57d64a98ac79e302934c3edf9bf3e55 (diff)
web: fix RefCell double-borrow panic in click fast path
`if let Some(idx) = nearest_hill(&pan.borrow(), ...)` keeps the immutable borrow alive through the whole if-let block (temporary lifetime in the scrutinee). Marking a peak from that path called do_refit -> borrow_mut() -> panic, which aborted the wasm instance and froze all further interaction (no marker removal, no drag refit). Scope the borrow to its own block.
Diffstat (limited to 'crates/gipfel-core/src/profile.rs')
0 files changed, 0 insertions, 0 deletions