Closed Modularius closed 3 weeks ago
There were considerably more unwrap
s than I realised. I've replaced them with anyhow
s (they inform the user of invalid JSON), and all remaining except
s should be impossible. The remaining unwraps
are all part of test modules.
I've replaced them with
anyhow
s (they inform the user of invalid JSON)
See https://github.com/STFC-ICD-Research-and-Design/supermusr-data-pipeline/blob/main/docs/style.md#crab-error-handling-rules, anyhow
outside of the return type of main()
is prohibited.
Summary of changes
unwrap
s toexpect
s inbuild_messages.rs
send_trace_message
tosend_digitiser_trace_message
and integrated edits insend_messages.rs
,simulation.rs
,engine.rs
and others.Trace
struct for channel traces inevent_lists.rs
and refactoredIntConstant
andTextConstant
typesEnsureDelayMs
actionInstruction for review/testing
General code review as the simulator was successfully tested in the pipeline.