Use expect for getting clock

This commit is contained in:
Andrew Jeffery 2022-05-20 18:01:46 +01:00
parent 3a8e833187
commit 2c1a71e143

View file

@ -980,7 +980,10 @@ impl Automerge {
let mut clock = Clock::new();
for hash in &change.deps {
let c = self.clocks.get(hash).unwrap();
let c = self
.clocks
.get(hash)
.expect("Change's deps should already be in the document");
clock.merge(c);
}
clock.include(