From 4f8aacfa5a57c3384981b85fbcf3ed5b8c693493 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 13 Jan 2016 11:53:56 +0100 Subject: [PATCH] Fixup: Store type: read() should return Arc>, update() should take that --- libimagstore/src/store.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 4af7f1e4..bf649b1b 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -1,5 +1,7 @@ use std::path::PathBuf; use std::result::Result as RResult; +use std::sync::Arc; +use std::sync::RWLock; pub use entry::Entry; pub use error::StoreError; @@ -16,11 +18,11 @@ impl Store { unimplemented!() } - pub fn read(path: PathBuf) -> Result { + pub fn read(path: PathBuf) -> Result>> { unimplemented!() } - pub fn update(entry: Entry) -> Result<()> { + pub fn update(entry: Arc>) -> Result<()> { unimplemented!() }