Skip to content

Commit

Permalink
Merge pull request #445 from johanhelsing/clippy-signaling
Browse files Browse the repository at this point in the history
ci: Run clippy with signaling feature enabled
  • Loading branch information
johanhelsing authored Mar 31, 2024
2 parents 676a8a2 + 3ae4f6e commit 6001c1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion bevy_matchbox/src/signaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Result<(), Error>>);

impl<Topology, Cb, S> From<SignalingServerBuilder<Topology, Cb, S>> for MatchboxServer
Expand Down Expand Up @@ -175,7 +176,7 @@ mod tests {
)
.into();

commands.insert_resource(MatchboxServer::from(server));
commands.insert_resource(server);
}

#[test]
Expand Down

0 comments on commit 6001c1e

Please sign in to comment.