From b727e3e7c02427b9037f6d591cb041d889a310a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sat, 18 Nov 2023 16:20:31 +1300 Subject: [PATCH] ErasedChild::signal takes &self --- src/stdlib/erased.rs | 2 +- src/tokio/erased.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdlib/erased.rs b/src/stdlib/erased.rs index 2ee4d9a..ae6e645 100644 --- a/src/stdlib/erased.rs +++ b/src/stdlib/erased.rs @@ -79,7 +79,7 @@ impl ErasedChild { /// - Grouped: [`GroupChild::signal`] /// - Ungrouped: [`Child::signal`] #[cfg(unix)] - pub fn signal(&mut self, sig: crate::Signal) -> Result<()> { + pub fn signal(&self, sig: crate::Signal) -> Result<()> { use crate::UnixChildExt; match self { diff --git a/src/tokio/erased.rs b/src/tokio/erased.rs index e96389e..7556662 100644 --- a/src/tokio/erased.rs +++ b/src/tokio/erased.rs @@ -91,7 +91,7 @@ impl ErasedChild { /// - Grouped: [`AsyncGroupChild::signal`] /// - Ungrouped: [`Child::signal`] #[cfg(unix)] - pub fn signal(&mut self, sig: crate::Signal) -> Result<()> { + pub fn signal(&self, sig: crate::Signal) -> Result<()> { use crate::UnixChildExt; match self {