diff --git a/src/derived/slot.rs b/src/derived/slot.rs index 6d96c3f..91684c8 100644 --- a/src/derived/slot.rs +++ b/src/derived/slot.rs @@ -622,9 +622,7 @@ where /// True if this memo should still be considered constant /// (presuming it ever was). fn is_still_constant(&self, db: &DB) -> bool { - let last_changed = db - .salsa_runtime() - .durability_last_changed_revision(self.durability); + let last_changed = db.salsa_runtime().last_changed_revision(self.durability); debug!( "is_still_constant(last_changed={:?} <= verified_at={:?}) = {:?}", last_changed, diff --git a/src/runtime.rs b/src/runtime.rs index 202b032..530e1b7 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -166,7 +166,7 @@ where /// value may have changed, which allows us to skip walking its /// dependencies. #[inline] - pub(crate) fn durability_last_changed_revision(&self, d: Durability) -> Revision { + pub(crate) fn last_changed_revision(&self, d: Durability) -> Revision { self.shared_state.revisions[d.index()].load() }