aboutsummaryrefslogtreecommitdiff
path: root/examples/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client.rs')
-rw-r--r--examples/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client.rs b/examples/client.rs
index b019322b..28655980 100644
--- a/examples/client.rs
+++ b/examples/client.rs
@@ -101,10 +101,10 @@ fn main() {
config.set_disable_active_migration(true);
// Generate a random source connection ID for the connection.
- let mut scid = vec![0; quiche::MAX_CONN_ID_LEN];
+ let mut scid = [0; quiche::MAX_CONN_ID_LEN];
SystemRandom::new().fill(&mut scid[..]).unwrap();
- let scid = quiche::ConnectionId::from_vec(scid);
+ let scid = quiche::ConnectionId::from_ref(&scid);
// Create a QUIC connection and initiate handshake.
let mut conn = quiche::connect(url.domain(), &scid, &mut config).unwrap();