Skip to content

v0.10.0

Compare
Choose a tag to compare
@Trisfald Trisfald released this 22 Aug 17:44
· 16 commits to master since this release

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(())
}