From ab6b88c68378ecbce000f3dfda8030266f3a0fba Mon Sep 17 00:00:00 2001 From: Kate Date: Mon, 3 Nov 2025 13:13:41 +0100 Subject: [PATCH] fix clippy --- crates/auto_update/src/auto_update.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs index 0983eef58f084b939c754de12488efed84feba35..c7480738a0536476ce555487604970ee59afc9ca 100644 --- a/crates/auto_update/src/auto_update.rs +++ b/crates/auto_update/src/auto_update.rs @@ -332,7 +332,7 @@ impl AutoUpdater { pub fn start_polling(&self, cx: &mut Context) -> Task> { cx.spawn(async move |this, cx| { - #[cfg(windows)] + #[cfg(target_os = "windows")] cleanup_windows() .await .context("failed to cleanup old directories") @@ -930,6 +930,7 @@ async fn install_release_macos( Ok(None) } +#[cfg(target_os = "windows")] async fn cleanup_windows() -> Result<()> { let parent = std::env::current_exe()? .parent()