Replace uses of try!() macro with "?" operator
This commit is contained in:
parent
246bf04dbf
commit
1dda98e17e
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue