diff options
author | schwente <sascha.schwenteck@hs-furtwangen.de> | 2016-06-01 12:54:33 +0200 |
---|---|---|
committer | schwente <sascha.schwenteck@hs-furtwangen.de> | 2016-06-01 12:54:33 +0200 |
commit | d5dd55820a7561074029e48d9c9c3e69e1664a88 (patch) | |
tree | d407fdee8b9d00072d969565d6fb7d8681cb63de /libimagtodo | |
parent | 03ee6e68384c9faeca4b7086b436cf9524c270cc (diff) |
Do the changes for the Delete function
Diffstat (limited to 'libimagtodo')
-rw-r--r-- | libimagtodo/src/delete.rs | 5 |
1 files 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); } |