diff options
| author | 2026-01-14 16:44:56 +0800 | |
|---|---|---|
| committer | 2026-01-14 16:44:56 +0800 | |
| commit | 9193112aca842dbe4d723aa865a7a30f3bcdb691 (patch) | |
| tree | 226a595587569c4a4ddb42729163060f4e04dc18 /src-tauri/src/core/fabric.rs | |
| parent | bdbed80e0ee632a6495244b0a56f74ed6f9d639e (diff) | |
| download | DropOut-9193112aca842dbe4d723aa865a7a30f3bcdb691.tar.gz DropOut-9193112aca842dbe4d723aa865a7a30f3bcdb691.zip | |
refactor: clean up formatting and improve readability in core modules
Diffstat (limited to 'src-tauri/src/core/fabric.rs')
| -rw-r--r-- | src-tauri/src/core/fabric.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src-tauri/src/core/fabric.rs b/src-tauri/src/core/fabric.rs index 8fc960f..fd38f41 100644 --- a/src-tauri/src/core/fabric.rs +++ b/src-tauri/src/core/fabric.rs @@ -89,7 +89,8 @@ pub struct InstalledFabricVersion { /// /// # Returns /// A list of game versions that have Fabric intermediary mappings available. -pub async fn fetch_supported_game_versions() -> Result<Vec<FabricGameVersion>, Box<dyn Error + Send + Sync>> { +pub async fn fetch_supported_game_versions( +) -> Result<Vec<FabricGameVersion>, Box<dyn Error + Send + Sync>> { let url = format!("{}/versions/game", FABRIC_META_URL); let resp = reqwest::get(&url) .await? @@ -102,7 +103,8 @@ pub async fn fetch_supported_game_versions() -> Result<Vec<FabricGameVersion>, B /// /// # Returns /// A list of all Fabric loader versions, ordered by build number (newest first). -pub async fn fetch_loader_versions() -> Result<Vec<FabricLoaderVersion>, Box<dyn Error + Send + Sync>> { +pub async fn fetch_loader_versions( +) -> Result<Vec<FabricLoaderVersion>, Box<dyn Error + Send + Sync>> { let url = format!("{}/versions/loader", FABRIC_META_URL); let resp = reqwest::get(&url) .await? @@ -145,7 +147,10 @@ pub async fn fetch_version_profile( "{}/versions/loader/{}/{}/profile/json", FABRIC_META_URL, game_version, loader_version ); - let resp = reqwest::get(&url).await?.json::<serde_json::Value>().await?; + let resp = reqwest::get(&url) + .await? + .json::<serde_json::Value>() + .await?; Ok(resp) } |