diff --git a/src/pane.rs b/src/pane.rs index 347d1950..21786051 100644 --- a/src/pane.rs +++ b/src/pane.rs @@ -1300,7 +1300,7 @@ impl PaneRuntimeIo { #[cfg(windows)] #[cfg_attr( - not(test), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] fn windows_handoff_supported(&self) -> bool { @@ -1313,7 +1313,7 @@ impl PaneRuntimeIo { #[cfg(windows)] #[cfg_attr( - not(test), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] fn duplicate_windows_handoff( @@ -1340,7 +1340,7 @@ impl PaneRuntimeIo { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] fn begin_handoff(&self, timeout: std::time::Duration) -> std::io::Result<()> { @@ -1353,7 +1353,7 @@ impl PaneRuntimeIo { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] fn set_handoff_paused(&self, paused: bool) -> std::io::Result<()> { @@ -1372,7 +1372,7 @@ impl PaneRuntimeIo { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] fn release_after_commit(&self) -> std::io::Result<()> { @@ -1916,7 +1916,7 @@ impl PaneRuntime { #[cfg(windows)] #[cfg_attr( - not(test), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] pub(crate) fn windows_handoff_supported(&self) -> bool { @@ -1925,7 +1925,7 @@ impl PaneRuntime { #[cfg(windows)] #[cfg_attr( - not(test), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] pub(crate) fn duplicate_windows_handoff( @@ -1937,7 +1937,7 @@ impl PaneRuntime { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] pub fn preserve_for_handoff(mut self) { @@ -1962,7 +1962,7 @@ impl PaneRuntime { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] pub fn set_handoff_reader_paused(&self, paused: bool) { @@ -1978,7 +1978,7 @@ impl PaneRuntime { #[cfg(any(unix, windows))] #[cfg_attr( - all(windows, not(test)), + windows, allow(dead_code, reason = "used by the stacked Windows handoff integration") )] pub fn pause_handoff_reader(&self, timeout: std::time::Duration) -> std::io::Result<()> { diff --git a/src/pty/actor.rs b/src/pty/actor.rs index 7a192195..fb79bf62 100644 --- a/src/pty/actor.rs +++ b/src/pty/actor.rs @@ -202,10 +202,7 @@ mod windows { Release, } - #[cfg_attr( - not(test), - allow(dead_code, reason = "used by the stacked Windows handoff integration") - )] + #[allow(dead_code, reason = "used by the stacked Windows handoff integration")] enum PtyIoControlCommand { Resize(PtyResizeRequest), BeginHandoff { @@ -240,10 +237,7 @@ mod windows { handoff_supported: bool, } - #[cfg_attr( - not(test), - allow(dead_code, reason = "used by the stacked Windows handoff integration") - )] + #[allow(dead_code, reason = "used by the stacked Windows handoff integration")] impl PtyIoActorHandle { pub(crate) fn try_write_user_input( &self,