From 651d54a5b36e87ab27efbe97d0046dce99c2eab5 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Sun, 31 Mar 2024 12:23:02 +0200 Subject: [PATCH] chore: Ignore new dead_code warning Fixes: #437 --- bevy_matchbox/src/socket.rs | 1 + 1 file changed, 1 insertion(+) 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 {