fixed function name
This commit is contained in:
parent
7de2577725
commit
48de71d926
1 changed files with 3 additions and 3 deletions
|
@ -7,13 +7,13 @@ use module_path::ModuleEntryPath;
|
||||||
use error::{TodoError, TodoErrorKind};
|
use error::{TodoError, TodoErrorKind};
|
||||||
|
|
||||||
/// With the uuid we get the storeid and then we can delete the entry
|
/// With the uuid we get the storeid and then we can delete the entry
|
||||||
pub fn deleteFunc(uuid: Uuid, store : &Store) -> Result<(),TodoError> {
|
pub fn delete(uuid: Uuid, store : &Store) -> Result<(),TodoError> {
|
||||||
// With the uuid we get the storeid
|
// With the uuid we get the storeid
|
||||||
let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid();
|
let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid();
|
||||||
// It deletes an entry
|
// It deletes an entry
|
||||||
match store.delete(store_id) {
|
match store.delete(store_id) {
|
||||||
Ok(val) => Ok(val),
|
Ok(val) => Ok(val),
|
||||||
Err(e) => Err(TodoError::new(TodoErrorKind::StoreError, Some(Box::new(e)))),
|
Err(e) => Err(TodoError::new(TodoErrorKind::StoreError, Some(Box::new(e)))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue