Use unused results

This commit is contained in:
Matthias Beyer 2016-10-08 00:57:04 +02:00
parent f73c407e75
commit 8f26d5b9c3
1 changed files with 6 additions and 4 deletions

View File

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