move unix import into cfg gated use

This commit is contained in:
Josh Junon 2024-02-29 14:54:53 +01:00
parent 96db3507aa
commit 6d51b5e252
No known key found for this signature in database

View File

@ -1,8 +1,8 @@
//! A [Tokio](https://tokio.rs)-based [`super::GitExecutor`] implementation.
#[cfg(unix)]
use std::os::unix::fs::MetadataExt;
use std::{collections::HashMap, fs::Permissions, os::unix::fs::PermissionsExt, time::Duration};
use std::os::unix::fs::{MetadataExt, PermissionsExt};
use std::{collections::HashMap, fs::Permissions, time::Duration};
use tokio::process::Command;
/// A [`super::GitExecutor`] implementation using the `git` command-line tool