Belt and suspenders
This commit is contained in:
parent
55c3636ef2
commit
a6ea858f1c
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue