From ba0ef701e91f663ed3f4b1d67e4cb16e5e40e897 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Sat, 16 Jan 2016 15:11:20 +0100 Subject: [PATCH] Use strings correctly --- libimagstore/src/store.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 9b0c144b..4d86152d 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -1,5 +1,5 @@ use std::result::Result as RResult; -use std::string; +use std::string::String; pub use entry::Entry; pub use error::StoreError; @@ -10,9 +10,9 @@ pub type LockedEntry = SingleUseLock; pub trait Store { fn create(&self, entry : Entry) -> Result<()>; - fn retrieve(&self, id : string) -> Result; - fn retrieve_copy(&self, id : string) -> Result; + fn retrieve(&self, id : String) -> Result; + fn retrieve_copy(&self, id : String) -> Result; fn update(&self, LockedEntry) -> Result<()>; - fn delete(&self, id : string) -> Result<()>; + fn delete(&self, id : String) -> Result<()>; }