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); } }