Skip to content

Commit f62525d

Browse files
authored
Fix warnings on Windows (#15112)
This fixes some warnings that show up on Windows: ``` warning: unused variable: `path` --> tests\testsuite\registry.rs:3146:24 | 3146 | fn set_permissions(path: &Path, permissions: u32) { | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `permissions` --> tests\testsuite\registry.rs:3146:37 | 3146 | fn set_permissions(path: &Path, permissions: u32) { | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permissions` ```
2 parents 9eda47e + e722344 commit f62525d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testsuite/registry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,6 +3143,7 @@ fn unaccessible_registry_cache_still_works() {
31433143
// make sure we add the permissions to the files afterwards so "cargo clean" can remove them (#6934)
31443144
set_permissions(&f_cache_path, 0o777);
31453145

3146+
#[cfg_attr(windows, allow(unused_variables))]
31463147
fn set_permissions(path: &Path, permissions: u32) {
31473148
#[cfg(not(windows))]
31483149
{

0 commit comments

Comments
 (0)