Belt and suspenders

This commit is contained in:
Tony Garnock-Jones 2022-01-09 21:01:55 +01:00
parent 55c3636ef2
commit a6ea858f1c
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ impl Entity<Protocol> for Supervisor
fn assert(&mut self, t: &mut Activation, m: Protocol, _h: Handle) -> ActorResult {
match m {
Protocol::SuperviseeStarted => t.set(&self.state, State::Started),
_ => (),
_ => Err(format!("Unexpected assertion: {:?}", m).as_str())?,
}
Ok(())
}