mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
fixup! Switch signals from usize to i32
Just address two clippy lints that are fallout from changing the signal type. There's no longer any need to convert these (which gets rid of an unwrap).
This commit is contained in:
parent
4f30993dbb
commit
47b4e3d067
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ impl From<&event_description_t> for EventDescription {
|
|||
typ: match desc.typ {
|
||||
event_type_t::any => EventType::Any,
|
||||
event_type_t::signal => EventType::Signal {
|
||||
signal: desc.signal.try_into().unwrap(),
|
||||
signal: desc.signal,
|
||||
},
|
||||
event_type_t::variable => EventType::Variable {
|
||||
name: desc.str_param1.from_ffi(),
|
||||
|
@ -244,7 +244,7 @@ impl From<&EventDescription> for event_description_t {
|
|||
};
|
||||
match desc.typ {
|
||||
EventType::Any => (),
|
||||
EventType::Signal { signal } => result.signal = signal.try_into().unwrap(),
|
||||
EventType::Signal { signal } => result.signal = signal,
|
||||
EventType::Variable { .. } => (),
|
||||
EventType::ProcessExit { pid } => result.pid = pid,
|
||||
EventType::JobExit {
|
||||
|
|
Loading…
Reference in a new issue