diff options
Diffstat (limited to 'examples/breakout')
-rw-r--r-- | examples/breakout/client.rs | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/breakout/client.rs b/examples/breakout/client.rs index de59d00..6c1e5dd 100644 --- a/examples/breakout/client.rs +++ b/examples/breakout/client.rs @@ -91,15 +91,17 @@ struct WallBundle { } pub(crate) fn start_connection(mut client: ResMut<Client>) { - client.open_connection( - ConnectionConfiguration::new( - SERVER_HOST.to_string(), - SERVER_PORT, - "0.0.0.0".to_string(), - 0, - ), - CertificateVerificationMode::SkipVerification, - ); + client + .open_connection( + ConnectionConfiguration::new( + SERVER_HOST.to_string(), + SERVER_PORT, + "0.0.0.0".to_string(), + 0, + ), + CertificateVerificationMode::SkipVerification, + ) + .unwrap(); } fn spawn_paddle(commands: &mut Commands, position: &Vec3, owned: bool) -> Entity { |