Fix future clippy lints (#15519)

- suggestions for tersity using helpers
This commit is contained in:
Stefan Holderbach
2025-04-08 02:51:12 +02:00
committed by GitHub
parent a886e30e04
commit ecb9799b6a
5 changed files with 14 additions and 21 deletions

View File

@ -8,10 +8,7 @@ pub fn kill_by_pid(pid: i64) -> io::Result<()> {
let output = cmd.output()?;
if !output.status.success() {
return Err(io::Error::new(
io::ErrorKind::Other,
"failed to kill process",
));
return Err(io::Error::other("failed to kill process"));
}
Ok(())