Skip to content

Commit

Permalink
refactor(shell): Use &self instead of self to allow kill to be called…
Browse files Browse the repository at this point in the history
… multiple times.
  • Loading branch information
xuchaoqian committed Dec 19, 2024
1 parent 83b6507 commit 882ea43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/shell/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 882ea43

Please sign in to comment.