|
|
@ -272,7 +272,7 @@ impl Client {
|
|
|
|
.expect("Expected initialized event")
|
|
|
|
.expect("Expected initialized event")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Payload::Event(Event { event, .. }) => {
|
|
|
|
Payload::Event(Event { event, .. }) => {
|
|
|
|
if event == "initialized".to_owned() {
|
|
|
|
if event == *"initialized" {
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
unreachable!()
|
|
|
|
unreachable!()
|
|
|
@ -308,7 +308,7 @@ impl Client {
|
|
|
|
pub async fn wait_for_stopped(&mut self) -> Result<()> {
|
|
|
|
pub async fn wait_for_stopped(&mut self) -> Result<()> {
|
|
|
|
match self.server_rx.recv().await.expect("Expected stopped event") {
|
|
|
|
match self.server_rx.recv().await.expect("Expected stopped event") {
|
|
|
|
Payload::Event(Event { event, .. }) => {
|
|
|
|
Payload::Event(Event { event, .. }) => {
|
|
|
|
if event == "stopped".to_owned() {
|
|
|
|
if event == *"stopped" {
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
unreachable!()
|
|
|
|
unreachable!()
|
|
|
|