diff options
author | fxqnlr <[email protected]> | 2024-09-04 09:56:42 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-04 09:56:42 +0200 |
commit | f5e070cdf6628a5ebd981d373929802317104e24 (patch) | |
tree | e31c88371737e20b2cc79bf9ee0c1dbfdeb6e727 /src/error.rs | |
parent | 1d64516ed95266a4fc1f8a18652f99158a4004f1 (diff) | |
download | modlist-f5e070cdf6628a5ebd981d373929802317104e24.tar modlist-f5e070cdf6628a5ebd981d373929802317104e24.tar.gz modlist-f5e070cdf6628a5ebd981d373929802317104e24.zip |
clippy --fix
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
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 | ||
120 | impl MLError { | 120 | impl 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), |