Skip to content

Commit

Permalink
Fix BorrowMut error when copy/pasting mapping with target-based activ…
Browse files Browse the repository at this point in the history
…ation condition
  • Loading branch information
helgoboss committed Sep 1, 2023
1 parent b2a2f28 commit 85d6d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/application/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ impl Session {
key: &MappingKey,
) -> Option<MappingId> {
self.mappings(compartment).find_map(|m| {
let m = m.borrow();
let m = m.try_borrow().ok()?;
if m.key() == key {
Some(m.id())
} else {
Expand Down

0 comments on commit 85d6d51

Please sign in to comment.