mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 17:11:11 +02:00
Fix future clippy lints (#15519)
- suggestions for tersity using helpers
This commit is contained in:
committed by
GitHub
parent
a886e30e04
commit
ecb9799b6a
@ -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(())
|
||||
|
Reference in New Issue
Block a user