mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03: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:
@@ -207,7 +207,7 @@ fn from(desc: &event_description_t) -> Self {
|
||||
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 @@ fn from(desc: &EventDescription) -> Self {
|
||||
};
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user