libimagrt: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
9ada2d9c98
commit
3631817827
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ impl<'a> Runtime<'a> {
|
|||
|
||||
let cfg = Configuration::new(&rtp);
|
||||
let cfg = if cfg.is_err() {
|
||||
let e = cfg.err().unwrap();
|
||||
let e = cfg.unwrap_err();
|
||||
if e.err_type() != ConfigErrorKind::NoConfigFileFound {
|
||||
let cause : Option<Box<Error>> = Some(Box::new(e));
|
||||
return Err(RuntimeError::new(RuntimeErrorKind::Instantiate, cause));
|
||||
|
|
Loading…
Reference in a new issue