diff --git a/bevy_matchbox/src/socket.rs b/bevy_matchbox/src/socket.rs index 4b484ba8..6558a41d 100644 --- a/bevy_matchbox/src/socket.rs +++ b/bevy_matchbox/src/socket.rs @@ -70,6 +70,7 @@ use std::{ /// } /// ``` #[derive(Resource, Component, Debug)] +#[allow(dead_code)] // keep the task alive so it doesn't drop before the socket pub struct MatchboxSocket(WebRtcSocket, Box); impl Deref for MatchboxSocket {