From 2d7e0a2fbf1c8a4187e2bf3fdcd592631ab273a0 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 26 May 2023 17:40:27 +0200 Subject: added full progress? cargo fmt --- src/apis/modrinth.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/apis') diff --git a/src/apis/modrinth.rs b/src/apis/modrinth.rs index 14ff266..fb3952d 100644 --- a/src/apis/modrinth.rs +++ b/src/apis/modrinth.rs @@ -127,7 +127,7 @@ pub enum GameVersionType { release, snapshot, alpha, - beta + beta, } async fn get(api: &str, path: &str) -> Result>, Box> { @@ -208,7 +208,10 @@ pub fn extract_current_version(versions: Vec) -> MLE { } pub async fn get_game_versions() -> Vec { - let data = get("https://api.modrinth.com/v2/", "tag/game_version").await.unwrap().unwrap(); + let data = get("https://api.modrinth.com/v2/", "tag/game_version") + .await + .unwrap() + .unwrap(); serde_json::from_slice(&data).unwrap() } -- cgit v1.2.3