Merge pull request 'closure param name tweak' (#153) from small-example-tweak into main
All checks were successful
Rust/sat-rs/pipeline/head This commit looks good

Reviewed-on: #153
This commit is contained in:
Robin Müller 2024-04-10 17:17:13 +02:00
commit 39ab9fa27b

View File

@ -36,11 +36,11 @@ impl<TmSender: EcssTmSenderCore, TcInMemConverter: EcssTcInMemConverter>
let mut nothing_to_do = true; let mut nothing_to_do = true;
let mut is_srv_finished = let mut is_srv_finished =
|_srv_id: u8, |_srv_id: u8,
tc_handling_done: HandlingStatus, tc_handling_status: HandlingStatus,
reply_handling_done: Option<HandlingStatus>| { reply_handling_status: Option<HandlingStatus>| {
if tc_handling_done == HandlingStatus::HandledOne if tc_handling_status == HandlingStatus::HandledOne
|| (reply_handling_done.is_some() || (reply_handling_status.is_some()
&& reply_handling_done.unwrap() == HandlingStatus::HandledOne) && reply_handling_status.unwrap() == HandlingStatus::HandledOne)
{ {
nothing_to_do = false; nothing_to_do = false;
} }