libimagrt: Replace .err().unwrap() with .unwrap_err()

This commit is contained in:
Matthias Beyer 2016-04-17 21:08:44 +02:00
parent 9ada2d9c98
commit 3631817827

View file

@ -73,7 +73,7 @@ impl<'a> Runtime<'a> {
let cfg = Configuration::new(&rtp); let cfg = Configuration::new(&rtp);
let cfg = if cfg.is_err() { let cfg = if cfg.is_err() {
let e = cfg.err().unwrap(); let e = cfg.unwrap_err();
if e.err_type() != ConfigErrorKind::NoConfigFileFound { if e.err_type() != ConfigErrorKind::NoConfigFileFound {
let cause : Option<Box<Error>> = Some(Box::new(e)); let cause : Option<Box<Error>> = Some(Box::new(e));
return Err(RuntimeError::new(RuntimeErrorKind::Instantiate, cause)); return Err(RuntimeError::new(RuntimeErrorKind::Instantiate, cause));