From e72234462082f825db578b111f848c6f273c02a4 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 26 Jan 2025 14:24:50 -0800 Subject: [PATCH] Fix warnings on Windows --- tests/testsuite/registry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testsuite/registry.rs b/tests/testsuite/registry.rs index eb5fa4d8d09..56ec1651575 100644 --- a/tests/testsuite/registry.rs +++ b/tests/testsuite/registry.rs @@ -3143,6 +3143,7 @@ fn unaccessible_registry_cache_still_works() { // make sure we add the permissions to the files afterwards so "cargo clean" can remove them (#6934) set_permissions(&f_cache_path, 0o777); + #[cfg_attr(windows, allow(unused_variables))] fn set_permissions(path: &Path, permissions: u32) { #[cfg(not(windows))] {