style: allow unused ExecutorChild (#829)

* style: allow unused ExecutorChild

* style: remove duplicate cfg on windows
This commit is contained in:
SteveLauC
2024-06-19 09:43:26 +08:00
committed by GitHub
parent 4a9ef581e5
commit d8406a8cfe
2 changed files with 1 additions and 2 deletions

View File

@@ -227,6 +227,7 @@ impl DryCommand {
/// The Result of spawn. Contains an actual `std::process::Child` if executed by a wet command. /// The Result of spawn. Contains an actual `std::process::Child` if executed by a wet command.
pub enum ExecutorChild { pub enum ExecutorChild {
#[allow(unused)] // this type has not been used
Wet(Child), Wet(Child),
Dry, Dry,
} }

View File

@@ -1,5 +1,3 @@
#![cfg(windows)]
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use std::{env::current_exe, fs, path::PathBuf}; use std::{env::current_exe, fs, path::PathBuf};
use tracing::{debug, error}; use tracing::{debug, error};