From f5e070cdf6628a5ebd981d373929802317104e24 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 09:56:42 +0200 Subject: clippy --fix --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.rs') 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> { } impl VersionLevel { - pub fn from(str: &str) -> Self { + #[must_use] pub fn from(str: &str) -> Self { match str { "release" => VersionLevel::Release, "snapshot" => VersionLevel::Snapshot, @@ -116,7 +116,7 @@ impl VersionLevel { versions_path: &str, force_update: bool, ) -> MLE { - let path = format!("{}/versions.json", versions_path); + let path = format!("{versions_path}/versions.json"); check_game_versions(&path, force_update).await?; let mut versions = load_game_versions(&path)?.into_iter(); -- cgit v1.2.3