diff --git a/src/error/display.rs b/src/error/display.rs index 12ca80d..9ea0b46 100644 --- a/src/error/display.rs +++ b/src/error/display.rs @@ -84,7 +84,7 @@ impl fmt::Display for Error { ModulationError { dividend, divisor } => { write!(f, "Error modulating {} % {}", dividend, divisor) }, - Custom(message) => write!(f, "Error: {}", message), + CustomMessage(message) => write!(f, "Error: {}", message), } } } diff --git a/src/error/mod.rs b/src/error/mod.rs index 18d076f..f7cb922 100644 --- a/src/error/mod.rs +++ b/src/error/mod.rs @@ -155,7 +155,7 @@ pub enum Error { }, /// A custom error explained by its message. - Custom(String), + CustomMessage(String), } impl Error {