From b4f3e4f37b4e97ccfb1f3ba9b245ebaf41edc382 Mon Sep 17 00:00:00 2001 From: Giulio V Date: Sun, 15 Mar 2026 11:30:53 +0100 Subject: [PATCH] fix(tools): define missing GWS_TIMEOUT_SECS constant --- src/config/schema.rs | 2 ++ src/tools/google_workspace.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/schema.rs b/src/config/schema.rs index eaebbc28d..217085c8e 100644 --- a/src/config/schema.rs +++ b/src/config/schema.rs @@ -6060,6 +6060,7 @@ impl Config { } } +#[allow(clippy::unused_async)] async fn sync_directory(path: &Path) -> Result<()> { #[cfg(unix)] { @@ -6085,6 +6086,7 @@ mod tests { #[cfg(unix)] use std::os::unix::fs::PermissionsExt; use std::path::PathBuf; + #[cfg(unix)] use tempfile::TempDir; use tokio::sync::{Mutex, MutexGuard}; use tokio::test; diff --git a/src/tools/google_workspace.rs b/src/tools/google_workspace.rs index 9dbcf5b4e..3a7e7d8c7 100644 --- a/src/tools/google_workspace.rs +++ b/src/tools/google_workspace.rs @@ -711,6 +711,6 @@ mod tests { #[test] fn gws_timeout_is_reasonable() { - assert_eq!(GWS_TIMEOUT_SECS, 30); + assert_eq!(DEFAULT_GWS_TIMEOUT_SECS, 30); } }