From 7e01c918546daff87b9f52e39923f7a2c47d2a78 Mon Sep 17 00:00:00 2001 From: Daisuke Murase Date: Mon, 16 Dec 2024 21:47:47 -0800 Subject: [PATCH] fix compilation error (#530) --- examples/wgpu_room/src/service.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/wgpu_room/src/service.rs b/examples/wgpu_room/src/service.rs index 9d3a26278..a075efb22 100644 --- a/examples/wgpu_room/src/service.rs +++ b/examples/wgpu_room/src/service.rs @@ -122,14 +122,14 @@ async fn service_task(inner: Arc, mut cmd_rx: mpsc::UnboundedRecei key_provider, }); + let mut options = RoomOptions::default(); + options.auto_subscribe = auto_subscribe; + options.e2ee = e2ee; + let res = Room::connect( &url, &token, - RoomOptions { - auto_subscribe, - e2ee, - ..Default::default() - }, + options, ) .await;