diff options
author | mario <mario-krehl@gmx.de> | 2016-06-28 20:20:35 +0200 |
---|---|---|
committer | mario <mario-krehl@gmx.de> | 2016-06-28 20:20:35 +0200 |
commit | 48de71d926f735b7cb331a5befcac76b85eec12e (patch) | |
tree | a63bc77186e6a199c41c2593991b3cc5a6d49fc0 /libimagtodo | |
parent | 7de2577725a27635491dfc7d83787bfc9dccd64f (diff) |
fixed function name
Diffstat (limited to 'libimagtodo')
-rw-r--r-- | libimagtodo/src/delete.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libimagtodo/src/delete.rs b/libimagtodo/src/delete.rs index 317deaa0..78af3c78 100644 --- a/libimagtodo/src/delete.rs +++ b/libimagtodo/src/delete.rs @@ -7,13 +7,13 @@ use module_path::ModuleEntryPath; use error::{TodoError, TodoErrorKind}; /// 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 let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid(); - // It deletes an entry + // It deletes an entry match store.delete(store_id) { 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)))), } } |