summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index a2b37a8..b4cc444 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -118,7 +118,7 @@ impl From<serde_json::error::Error> for MLError {
118} 118}
119 119
120impl MLError { 120impl MLError {
121 pub fn new(etype: ErrorType, message: &str) -> Self { 121 #[must_use] pub fn new(etype: ErrorType, message: &str) -> Self {
122 Self { 122 Self {
123 etype, 123 etype,
124 message: String::from(message), 124 message: String::from(message),