From d5dd55820a7561074029e48d9c9c3e69e1664a88 Mon Sep 17 00:00:00 2001 From: schwente Date: Wed, 1 Jun 2016 12:54:33 +0200 Subject: [PATCH] Do the changes for the Delete function --- libimagtodo/src/delete.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libimagtodo/src/delete.rs b/libimagtodo/src/delete.rs index cdb16501..79dd8ca5 100644 --- a/libimagtodo/src/delete.rs +++ b/libimagtodo/src/delete.rs @@ -6,13 +6,14 @@ use std::ops::Deref; use toml::Value; +use uuid::Uuid; use libimagstore::store::Store; use libimagstore::storeid::IntoStoreId; use module_path::ModuleEntryPath; /// With the uuid we get the storeid and than we can delete the entry -fn deleteFunc(uuid: i32, store : &Store) { +fn deleteFunc(uuid: Uuid, store : &Store) { // With this we can read from a .json File // let mut file = File::open("text.json").unwrap(); // let mut data = String::new(); @@ -25,7 +26,5 @@ fn deleteFunc(uuid: i32, store : &Store) { let store_id = ModuleEntryPath::new(format!("taskwarrior/{}", uuid)).into_storeid(); // It deletes an entry store.delete(store_id); - - println!("The {} was delete!", uuid); }