Fix lint error on windows

pull/184/head
Chip Senkbeil 1 year ago
parent 4bcbefa046
commit e8521992fa
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -1253,11 +1253,13 @@ async fn set_permissions_should_set_readonly_flag_if_specified(
async fn set_permissions_should_set_unix_permissions_if_on_unix_platform(
#[future] client: Ctx<DistantClient>,
) {
#[allow(unused_variables)]
let mut client = client.await;
#[cfg(unix)]
{
use std::os::unix::prelude::*;
let mut client = client.await;
let temp = assert_fs::TempDir::new().unwrap();
let file = temp.child("file");
file.write_str("some text").unwrap();

Loading…
Cancel
Save