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); }