summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
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