From d44b1dc35caa08b0f79ec57b6d6c09f8f39b7b9e Mon Sep 17 00:00:00 2001 From: Pauline Date: Sun, 28 Jul 2024 21:55:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore:=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/src/api/commands.rs | 26 ++++++++++++++++++++------ packages/core/src/api/settings.rs | 3 ++- packages/core/src/store/minecraft.rs | 2 +- packages/core/src/store/processor.rs | 4 +++- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/apps/desktop/src/api/commands.rs b/apps/desktop/src/api/commands.rs index 97e50f4b..1ea6fc4c 100644 --- a/apps/desktop/src/api/commands.rs +++ b/apps/desktop/src/api/commands.rs @@ -245,9 +245,12 @@ pub async fn auth_login(handle: AppHandle) -> Result Result crate::Result<()> { tracing::trace!("re-resetting file watching system"); let mut file_watcher = crate::utils::watcher::initialize_watcher().await?; - state_write.clusters = RwLock::new(Clusters::initialize(&state_write.directories, &mut file_watcher).await?); + state_write.clusters = + RwLock::new(Clusters::initialize(&state_write.directories, &mut file_watcher).await?); state_write.watcher = RwLock::new(file_watcher); send_ingress(&ingress, 10.0, None).await?; diff --git a/packages/core/src/store/minecraft.rs b/packages/core/src/store/minecraft.rs index d8085e12..2a74aae3 100644 --- a/packages/core/src/store/minecraft.rs +++ b/packages/core/src/store/minecraft.rs @@ -1034,5 +1034,5 @@ pub enum MinecraftAuthError { #[error("failed to read user hash")] HashError, #[error("failed to read user xbox session ID")] - SessionIdError + SessionIdError, } diff --git a/packages/core/src/store/processor.rs b/packages/core/src/store/processor.rs index 35364aca..12f3d80f 100644 --- a/packages/core/src/store/processor.rs +++ b/packages/core/src/store/processor.rs @@ -582,7 +582,9 @@ impl Processor { if let Err(err) = cluster::edit(&cluster_path, |cluster| { cluster.meta.recently_played += update as u64; async { Ok(()) } - }).await { + }) + .await + { tracing::warn!( "failed to update playtime for cluster {}: {}", &cluster_path,