diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index f270abbf..0913d90a 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -44,7 +44,7 @@ pub mod error { /** * get the Kind of the Error */ - pub fn kind(&self) -> ConfigErrorKind { + pub fn err_type(&self) -> ConfigErrorKind { self.kind.clone() } @@ -52,7 +52,7 @@ pub mod error { * Get the string, the ConfigError can be described with */ pub fn as_str(e: &ConfigError) -> &'static str { - match e.kind() { + match e.err_type() { ConfigErrorKind::NoConfigFileFound => "No config file found", } } diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index d5fd69aa..b89bf5b4 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -74,7 +74,7 @@ impl<'a> Runtime<'a> { let cfg = Configuration::new(&rtp); let cfg = if cfg.is_err() { let e = cfg.err().unwrap(); - if e.kind() != ConfigErrorKind::NoConfigFileFound { + if e.err_type() != ConfigErrorKind::NoConfigFileFound { let cause : Option> = Some(Box::new(e)); return Err(RuntimeError::new(RuntimeErrorKind::Instantiate, cause)); } else {