From 340515176f9421cbf60e5dbb3d3832f4f78b3e58 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 13 Nov 2025 11:08:28 -0500 Subject: dungeon: refactor manual drop --- dungeon/src/map.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dungeon') diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs index ed92882..a28248b 100644 --- a/dungeon/src/map.rs +++ b/dungeon/src/map.rs @@ -138,11 +138,9 @@ impl Floor { #[must_use] pub fn hash(&self) -> u64 { // initial (immutable) dirty check - let dirty = self.dirty.borrow(); - if !*dirty { + if !*self.dirty.borrow() { return *self.hash.borrow(); } - drop(dirty); // recompute hash let mut dirty = self.dirty.borrow_mut(); -- cgit v1.2.3-freya