diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index ebd7e612..b5039e89 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -94,7 +94,7 @@ jobs: uses: Swatinem/rust-cache@v2.7.3 - name: Run cargo clippy - run: cargo clippy --all-targets -- -D warnings + run: cargo clippy --features signaling --all-targets -- -D warnings lint-wasm: name: Clippy wasm diff --git a/bevy_matchbox/src/signaling.rs b/bevy_matchbox/src/signaling.rs index ea02a61c..47f6f06a 100644 --- a/bevy_matchbox/src/signaling.rs +++ b/bevy_matchbox/src/signaling.rs @@ -64,6 +64,7 @@ use std::net::SocketAddr; /// } /// ``` #[derive(Debug, Resource)] +#[allow(dead_code)] // we take ownership of the task to not drop it pub struct MatchboxServer(Task>); impl From> for MatchboxServer @@ -175,7 +176,7 @@ mod tests { ) .into(); - commands.insert_resource(MatchboxServer::from(server)); + commands.insert_resource(server); } #[test]