From c7ecf3019a75dc0ab1a0aefeb9b880899fc8a231 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 29 May 2023 18:01:12 +0200 Subject: cargo fmt and add fmt file --- src/apis/modrinth.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/apis/modrinth.rs') diff --git a/src/apis/modrinth.rs b/src/apis/modrinth.rs index fb3952d..9a22633 100644 --- a/src/apis/modrinth.rs +++ b/src/apis/modrinth.rs @@ -130,7 +130,10 @@ pub enum GameVersionType { beta, } -async fn get(api: &str, path: &str) -> Result>, Box> { +async fn get( + api: &str, + path: &str, +) -> Result>, Box> { let url = format!(r#"{}{}"#, api, path); let client = Client::builder() @@ -182,7 +185,10 @@ pub async fn versions(api: &str, id: String, list: List) -> Vec { } ///Get version with the version ids -pub async fn get_raw_versions(api: &str, versions: Vec) -> Vec { +pub async fn get_raw_versions( + api: &str, + versions: Vec, +) -> Vec { let url = format!(r#"versions?ids=["{}"]"#, versions.join(r#"",""#)); let data = get(api, &url).await.unwrap().unwrap(); -- cgit v1.2.3