Fix Result helper usage: fold_defresult

Was changed in

    9fa115500d
This commit is contained in:
Matthias Beyer 2017-05-30 20:28:16 +02:00
parent 80fb6cc2bd
commit 6625be34aa
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ fn add(rt: &Runtime) {
.and_then(|mut collection| {
scmd.values_of("urls")
.unwrap() // enforced by clap
.fold_defresult(|url| collection.add_link(BookmarkLink::from(url)))
.fold_result(|url| collection.add_link(BookmarkLink::from(url)))
})
.map_err_trace()
.map_info_str("Ready")