From cba49f7bba790d4ef7af0b7ea82b0ae3df2fafdd Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sat, 23 Mar 2019 15:29:50 +0200 Subject: [PATCH] Rename Error::Custom to Error::CustomMessage --- src/error/display.rs | 2 +- src/error/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {