diff options
author | mario <mario-krehl@gmx.de> | 2016-06-30 19:09:14 +0200 |
---|---|---|
committer | mario <mario-krehl@gmx.de> | 2016-06-30 19:09:14 +0200 |
commit | a91ec5c3ab54069da0e7f02453750cf116108f5a (patch) | |
tree | 0192e631c116a6eded6e92213072392545c7deb0 /libimagtodo | |
parent | bbb4866fa0ada4084c0ff1131d515f70636ccb2f (diff) |
do vim ggVG=
Diffstat (limited to 'libimagtodo')
-rw-r--r-- | libimagtodo/src/delete.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libimagtodo/src/delete.rs b/libimagtodo/src/delete.rs index 3aafae59..ed56dc0c 100644 --- a/libimagtodo/src/delete.rs +++ b/libimagtodo/src/delete.rs @@ -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)))), + } } |