diff --git a/packages/ciphernode/data/src/snapshot.rs b/packages/ciphernode/data/src/snapshot.rs index f747a85a..ba11d9cd 100644 --- a/packages/ciphernode/data/src/snapshot.rs +++ b/packages/ciphernode/data/src/snapshot.rs @@ -22,7 +22,7 @@ pub trait Checkpoint: Snapshot { /// Declare the DataStore instance available on the object fn repository(&self) -> Repository; - /// Write the current snapshot to the DataStore provided by `get_store()` at the object's id returned by `get_id()` + /// Write the current snapshot to the `Repository` provided by `repository()` fn checkpoint(&self) { self.repository().write(&self.snapshot()); } diff --git a/packages/ciphernode/router/src/e3_request_router.rs b/packages/ciphernode/router/src/e3_request_router.rs index 86684c6f..8f72d9bb 100644 --- a/packages/ciphernode/router/src/e3_request_router.rs +++ b/packages/ciphernode/router/src/e3_request_router.rs @@ -132,7 +132,7 @@ impl Handler for E3RequestRouter { }) }); - for feature in self.features.clone().iter() { + for feature in self.features.iter() { feature.on_event(context, &msg); }