From d1077f7d8d169605d1a8933696b0970b8a58c390 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Wed, 19 Jun 2024 09:22:02 +0800 Subject: [PATCH 1/2] style: allow unused ExecutorChild --- src/executor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/executor.rs b/src/executor.rs index 5353f60d..4bd813fe 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -227,6 +227,7 @@ impl DryCommand { /// The Result of spawn. Contains an actual `std::process::Child` if executed by a wet command. pub enum ExecutorChild { + #[allow(unused)] // this type has not been used Wet(Child), Dry, } From c348a37f168c3603a9b01cf9de243c609f98a992 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Wed, 19 Jun 2024 09:29:31 +0800 Subject: [PATCH 2/2] style: remove duplicate cfg on windows --- src/self_renamer.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/self_renamer.rs b/src/self_renamer.rs index 4a26b672..96669870 100644 --- a/src/self_renamer.rs +++ b/src/self_renamer.rs @@ -1,5 +1,3 @@ -#![cfg(windows)] - use color_eyre::eyre::Result; use std::{env::current_exe, fs, path::PathBuf}; use tracing::{debug, error};