v0.10.0
Fixes
Improved the ergonomics of handling errors from EventProcessor
. ProcessOutput
has a new method result()
to get a WeaselResult
.
For example, the following function is now valid:
fn fire_event<R, P>(processor: &mut P) -> WeaselResult<(), R>
where
R: BattleRules + 'static,
P: EventProcessor<R>,
{
DummyEvent::trigger(processor).fire().result()?;
Ok(())
}