Replace uses of try!() macro with "?" operator
This commit is contained in:
parent
ee7b04dd42
commit
246bf04dbf
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ pub fn retrieve(rt: &Runtime) {
|
||||||
let id = scmd.value_of("id").unwrap();
|
let id = scmd.value_of("id").unwrap();
|
||||||
let path = PathBuf::from(id);
|
let path = PathBuf::from(id);
|
||||||
let store = Some(rt.store().path().clone());
|
let store = Some(rt.store().path().clone());
|
||||||
let path = try!(StoreId::new(store, path).map_err_trace_exit(1));
|
let path = StoreId::new(store, path).map_err_trace_exit(1)?;
|
||||||
debug!("path = {:?}", path);
|
debug!("path = {:?}", path);
|
||||||
|
|
||||||
rt.store()
|
rt.store()
|
||||||
|
|
Loading…
Reference in a new issue