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