mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Fix warnings on Windows
This commit is contained in:
parent
fd4f492125
commit
e722344620
@ -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))]
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user