From 47b4e3d067bafd2daad1cf062f17fcae0d0a7a4c Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 12 Mar 2023 21:38:21 -0500 Subject: [PATCH] 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). --- fish-rust/src/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish-rust/src/event.rs b/fish-rust/src/event.rs index 1a057e1ed..4a4eab3e2 100644 --- a/fish-rust/src/event.rs +++ b/fish-rust/src/event.rs @@ -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 {