summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-04 09:56:42 +0200
committerfxqnlr <[email protected]>2024-09-04 09:56:42 +0200
commitf5e070cdf6628a5ebd981d373929802317104e24 (patch)
treee31c88371737e20b2cc79bf9ee0c1dbfdeb6e727 /src/lib.rs
parent1d64516ed95266a4fc1f8a18652f99158a4004f1 (diff)
downloadmodlist-f5e070cdf6628a5ebd981d373929802317104e24.tar
modlist-f5e070cdf6628a5ebd981d373929802317104e24.tar.gz
modlist-f5e070cdf6628a5ebd981d373929802317104e24.zip
clippy --fix
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f77befc..c51381c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -103,7 +103,7 @@ pub fn load_game_versions(path: &str) -> MLE<Vec<GameVersion>> {
103} 103}
104 104
105impl VersionLevel { 105impl VersionLevel {
106 pub fn from(str: &str) -> Self { 106 #[must_use] pub fn from(str: &str) -> Self {
107 match str { 107 match str {
108 "release" => VersionLevel::Release, 108 "release" => VersionLevel::Release,
109 "snapshot" => VersionLevel::Snapshot, 109 "snapshot" => VersionLevel::Snapshot,
@@ -116,7 +116,7 @@ impl VersionLevel {
116 versions_path: &str, 116 versions_path: &str,
117 force_update: bool, 117 force_update: bool,
118 ) -> MLE<String> { 118 ) -> MLE<String> {
119 let path = format!("{}/versions.json", versions_path); 119 let path = format!("{versions_path}/versions.json");
120 check_game_versions(&path, force_update).await?; 120 check_game_versions(&path, force_update).await?;
121 let mut versions = load_game_versions(&path)?.into_iter(); 121 let mut versions = load_game_versions(&path)?.into_iter();
122 122