From a91ec5c3ab54069da0e7f02453750cf116108f5a Mon Sep 17 00:00:00 2001 From: mario Date: Thu, 30 Jun 2016 19:09:14 +0200 Subject: [PATCH] do vim ggVG= --- libimagtodo/src/delete.rs | 14 +++++++------- 1 file 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)))), + } }