From 1dda98e17ee355d11c5fa7ec4420acd6f270ff88 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 30 Oct 2017 20:19:29 +0100 Subject: [PATCH] Replace uses of try!() macro with "?" operator --- bin/domain/imag-bookmark/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/domain/imag-bookmark/src/main.rs b/bin/domain/imag-bookmark/src/main.rs index 7f2131ce..3529b0ef 100644 --- a/bin/domain/imag-bookmark/src/main.rs +++ b/bin/domain/imag-bookmark/src/main.rs @@ -88,7 +88,7 @@ fn add(rt: &Runtime) { BookmarkCollection::get(rt.store(), &coll) .and_then(|mut collection| { for url in scmd.values_of("urls").unwrap() { // unwrap saved by clap - let _ = try!(collection.add_link(BookmarkLink::from(url))); + let _ = collection.add_link(BookmarkLink::from(url))?; } Ok(()) })