mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-29 02:59:08 +00:00
rename durability_last_changed_revision
to last_changed_revision
The old name was really awkward.
This commit is contained in:
parent
e796af2e7a
commit
ccb85989bc
2 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue