Post review fixes

This commit is contained in:
Arthur Carcano
2026-04-28 17:56:03 +02:00
committed by Alex
parent 6a097e7de3
commit 322da7242b
6 changed files with 6 additions and 14 deletions
-5
View File
@@ -84,11 +84,6 @@ where
self.v = new_value;
}
pub fn update2(&mut self, f: impl FnOnce(&mut T), time: u64) {
self.ts = std::cmp::max(self.ts + 1, time);
f(&mut self.v)
}
/// Get the timestamp currently associated with the value
pub fn timestamp(&self) -> u64 {
self.ts