refactor(shell): Use &self instead of self to allow kill to be called multiple times.

pull/2224/head
Chaoqian Xu 7 months ago
parent 83b6507269
commit 882ea43183

@ -75,7 +75,7 @@ impl CommandChild {
}
/// Sends a kill signal to the child.
pub fn kill(self) -> crate::Result<()> {
pub fn kill(&self) -> crate::Result<()> {
self.inner.kill()?;
Ok(())
}

Loading…
Cancel
Save