Skip to content

Commit

Permalink
Merge pull request #471 from johanhelsing/clippy-fix
Browse files Browse the repository at this point in the history
chore: cargo clippy --fix
  • Loading branch information
johanhelsing authored Dec 12, 2024
2 parents 3a3f5c1 + 673228a commit c98b3f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bevy_matchbox/src/signaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub trait StartServerExt<
fn start_server(&mut self, builder: SignalingServerBuilder<Topology, Cb, S>);
}

impl<'w, 's, Topology, Cb, S> StartServerExt<Topology, Cb, S> for Commands<'w, 's>
impl<Topology, Cb, S> StartServerExt<Topology, Cb, S> for Commands<'_, '_>
where
Topology: SignalingTopology<Cb, S> + Send + 'static,
Cb: SignalingCallbacks,
Expand All @@ -139,7 +139,7 @@ pub trait StopServerExt {
fn stop_server(&mut self);
}

impl<'w, 's> StopServerExt for Commands<'w, 's> {
impl StopServerExt for Commands<'_, '_> {
fn stop_server(&mut self) {
self.add(StopServer)
}
Expand Down
4 changes: 2 additions & 2 deletions bevy_matchbox/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub trait OpenSocketExt<C: BuildablePlurality> {
fn open_socket(&mut self, socket_builder: WebRtcSocketBuilder<C>);
}

impl<'w, 's, C: BuildablePlurality + 'static> OpenSocketExt<C> for Commands<'w, 's> {
impl<C: BuildablePlurality + 'static> OpenSocketExt<C> for Commands<'_, '_> {
fn open_socket(&mut self, socket_builder: WebRtcSocketBuilder<C>) {
self.add(OpenSocket(socket_builder))
}
Expand All @@ -138,7 +138,7 @@ pub trait CloseSocketExt {
fn close_socket<C: BuildablePlurality + 'static>(&mut self);
}

impl<'w, 's> CloseSocketExt for Commands<'w, 's> {
impl CloseSocketExt for Commands<'_, '_> {
fn close_socket<C: BuildablePlurality + 'static>(&mut self) {
self.add(CloseSocket::<C>(PhantomData))
}
Expand Down

0 comments on commit c98b3f6

Please sign in to comment.