mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +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)
|
// make sure we add the permissions to the files afterwards so "cargo clean" can remove them (#6934)
|
||||||
set_permissions(&f_cache_path, 0o777);
|
set_permissions(&f_cache_path, 0o777);
|
||||||
|
|
||||||
|
#[cfg_attr(windows, allow(unused_variables))]
|
||||||
fn set_permissions(path: &Path, permissions: u32) {
|
fn set_permissions(path: &Path, permissions: u32) {
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user