Use strings correctly
This commit is contained in:
parent
6bb48f53f4
commit
ba0ef701e9
1 changed files with 4 additions and 4 deletions
|
@ -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<Entry>;
|
|||
|
||||
pub trait Store {
|
||||
fn create(&self, entry : Entry) -> Result<()>;
|
||||
fn retrieve(&self, id : string) -> Result<LockedEntry>;
|
||||
fn retrieve_copy(&self, id : string) -> Result<Entry>;
|
||||
fn retrieve(&self, id : String) -> Result<LockedEntry>;
|
||||
fn retrieve_copy(&self, id : String) -> Result<Entry>;
|
||||
fn update(&self, LockedEntry) -> Result<()>;
|
||||
fn delete(&self, id : string) -> Result<()>;
|
||||
fn delete(&self, id : String) -> Result<()>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue