From f5e070cdf6628a5ebd981d373929802317104e24 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 09:56:42 +0200 Subject: clippy --fix --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/error.rs') 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 for MLError { } impl MLError { - pub fn new(etype: ErrorType, message: &str) -> Self { + #[must_use] pub fn new(etype: ErrorType, message: &str) -> Self { Self { etype, message: String::from(message), -- cgit v1.2.3