diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -103,7 +103,7 @@ pub fn load_game_versions(path: &str) -> MLE<Vec<GameVersion>> { | |||
103 | } | 103 | } |
104 | 104 | ||
105 | impl VersionLevel { | 105 | impl 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 | ||