diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-10-08 00:57:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-10-08 00:57:04 +0200 |
commit | 8f26d5b9c32739480563986fe6db9eed2daef393 (patch) | |
tree | aebde45ccafbd6491d0445001e9798c7dc370d5b /imag-bookmark | |
parent | f73c407e750ab8b9af5d875e24dbd4c25ad4955d (diff) |
Use unused results
Diffstat (limited to 'imag-bookmark')
-rw-r--r-- | imag-bookmark/src/main.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/imag-bookmark/src/main.rs b/imag-bookmark/src/main.rs index 3adfcccf..814d1a40 100644 --- a/imag-bookmark/src/main.rs +++ b/imag-bookmark/src/main.rs @@ -69,7 +69,7 @@ fn add(rt: &Runtime) { BookmarkCollection::get(rt.store(), coll) .map(|mut collection| { for url in scmd.values_of("urls").unwrap() { // enforced by clap - collection.add_link(BookmarkLink::from(url)).map_err(|e| trace_error(&e)); + collection.add_link(BookmarkLink::from(url)).map_err(|e| trace_error(&e)).ok(); } }); info!("Ready"); @@ -115,7 +115,8 @@ fn list(rt: &Runtime) { }, Err(e) => trace_error_exit(&e, 1), } - }); + }) + .ok(); info!("Ready"); } @@ -126,9 +127,10 @@ fn remove(rt: &Runtime) { BookmarkCollection::get(rt.store(), coll) .map(|mut collection| { for url in scmd.values_of("urls").unwrap() { // enforced by clap - collection.remove_link(BookmarkLink::from(url)).map_err(|e| trace_error(&e)); + collection.remove_link(BookmarkLink::from(url)).map_err(|e| trace_error(&e)).ok(); } - }); + }) + .ok(); info!("Ready"); } |