mirror of
https://github.com/casey/just.git
synced 2025-08-04 15:08:39 +00:00
Fix clippy lints (#2768)
This commit is contained in:
parent
515e806b51
commit
0093ae9488
2 changed files with 2 additions and 8 deletions
|
@ -108,10 +108,7 @@ impl TryFrom<u8> for Signal {
|
|||
2 => Ok(Signal::Interrupt),
|
||||
3 => Ok(Signal::Quit),
|
||||
15 => Ok(Signal::Terminate),
|
||||
_ => Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
format!("unexpected signal: {n}"),
|
||||
)),
|
||||
_ => Err(io::Error::other(format!("unexpected signal: {n}"))),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,10 +123,7 @@ impl SignalHandler {
|
|||
let pid = match child.id().try_into() {
|
||||
Err(err) => {
|
||||
return (
|
||||
Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
format!("invalid child PID: {err}"),
|
||||
)),
|
||||
Err(io::Error::other(format!("invalid child PID: {err}"))),
|
||||
None,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue