diff --git a/packages/ciphernode/data/src/into_key.rs b/packages/ciphernode/data/src/into_key.rs index 517ff9bd..1fc7df4e 100644 --- a/packages/ciphernode/data/src/into_key.rs +++ b/packages/ciphernode/data/src/into_key.rs @@ -10,7 +10,7 @@ impl IntoKey for Vec { } } -+/// Keys can be references to vectors of bytes (&Vec) +/// Keys can be references to vectors of bytes (&Vec) impl IntoKey for &Vec { fn into_key(self) -> Vec { self.clone() diff --git a/packages/ciphernode/data/src/sled_store.rs b/packages/ciphernode/data/src/sled_store.rs index e87eec9d..b140be9d 100644 --- a/packages/ciphernode/data/src/sled_store.rs +++ b/packages/ciphernode/data/src/sled_store.rs @@ -15,7 +15,8 @@ impl Actor for SledStore { impl SledStore { pub fn new(bus: &Addr, path: &str) -> Result { - let db = sled::open(path).context("could not open db")?; + let db = sled::open(path) + .with_context(|| format!("Could not open database at path '{}'", path))?; Ok(Self { db, bus: bus.clone(),