diff --git a/apps/frontend/src/ui/pages/Home.tsx b/apps/frontend/src/ui/pages/Home.tsx index 1104caf1..f2db3f61 100644 --- a/apps/frontend/src/ui/pages/Home.tsx +++ b/apps/frontend/src/ui/pages/Home.tsx @@ -180,7 +180,7 @@ function ClusterCard(props: Cluster) { return ( <>
openClusterPage(e)} >
diff --git a/apps/frontend/uno.config.ts b/apps/frontend/uno.config.ts index a2626a90..bb85efc2 100644 --- a/apps/frontend/uno.config.ts +++ b/apps/frontend/uno.config.ts @@ -1,6 +1,5 @@ import { defineConfig, - presetAttributify, presetIcons, presetUno, transformerDirectives, diff --git a/packages/core/src/api/cluster/create.rs b/packages/core/src/api/cluster/create.rs index 973004a3..5f0709e5 100644 --- a/packages/core/src/api/cluster/create.rs +++ b/packages/core/src/api/cluster/create.rs @@ -67,7 +67,7 @@ pub async fn create_unfinished_cluster( State::sync().await?; let state = State::get().await?; let mut packages = state.packages.write().await; - packages.add_cluster(cluster.cluster_path()).await; + packages.add_cluster(cluster.cluster_path()); Ok(cluster.cluster_path()) } @@ -173,7 +173,7 @@ pub async fn create_cluster( State::sync().await?; let state = State::get().await?; let mut packages = state.packages.write().await; - packages.add_cluster(cluster.cluster_path()).await; + packages.add_cluster(cluster.cluster_path()); Ok(cluster.cluster_path()) } diff --git a/packages/core/src/api/package/content/curseforge.rs b/packages/core/src/api/package/content/curseforge.rs index 247897f7..75c665d9 100644 --- a/packages/core/src/api/package/content/curseforge.rs +++ b/packages/core/src/api/package/content/curseforge.rs @@ -351,7 +351,7 @@ impl Into for ModFile { featured: false, is_available: self.is_available && files.len() > 0, files, - game_versions: game_versions, + game_versions, published: Some(self.file_date), version_display: self.display_name, version_type: self.release_type.into(), diff --git a/packages/core/src/store/package.rs b/packages/core/src/store/package.rs index 68577065..64fa2361 100644 --- a/packages/core/src/store/package.rs +++ b/packages/core/src/store/package.rs @@ -205,13 +205,13 @@ impl Packages { // TODO: This should probably not clone and store the cluster path in like 2 areas for cluster_path in clusters.0.keys() { - this.add_cluster(cluster_path.clone()).await; + this.add_cluster(cluster_path.clone()); } this } - pub async fn add_cluster(&mut self, cluster_path: ClusterPath) { + pub fn add_cluster(&mut self, cluster_path: ClusterPath) { let mgr = PackageManager::new(cluster_path.clone()); self.managers.insert(cluster_path, mgr); } diff --git a/packages/gamemode/src/lib.rs b/packages/gamemode/src/lib.rs index 77969b26..6e1253ce 100644 --- a/packages/gamemode/src/lib.rs +++ b/packages/gamemode/src/lib.rs @@ -15,12 +15,9 @@ pub fn request_start_for_wrapper(pid: u32) -> Result<(), String> { if result == 0 { Ok(()) } else { - Err(format!( - "failed to request gamemode for pid {}: {}", - pid, result - )) + Err(format!("failed to request gamemode for pid {pid}: {result}")) } }, - Err(e) => Err(format!("failed to request gamemode for pid {}: {}", pid, e)), + Err(e) => Err(format!("failed to request gamemode for pid {pid}: {e}")), } }