From 22d02eabb4535406b4c38ec7533f233a261d4784 Mon Sep 17 00:00:00 2001 From: Matej Zajo Kralik <1835434+Zajozor@users.noreply.github.com> Date: Wed, 4 Oct 2023 04:21:40 +0300 Subject: [PATCH] BevyRenet: fix typo in method name in steam functions (#114) --- bevy_renet/src/steam.rs | 4 ++-- bevy_renet/src/transport.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bevy_renet/src/steam.rs b/bevy_renet/src/steam.rs index 73b1168f..d02d8c74 100644 --- a/bevy_renet/src/steam.rs +++ b/bevy_renet/src/steam.rs @@ -110,7 +110,7 @@ pub fn client_connected() -> impl FnMut(Option>) -> bo } } -pub fn client_diconnected() -> impl FnMut(Option>) -> bool { +pub fn client_disconnected() -> impl FnMut(Option>) -> bool { |transport| match transport { Some(transport) => transport.is_disconnected(), None => true, @@ -133,7 +133,7 @@ pub fn client_just_connected() -> impl FnMut(Local, Option impl FnMut(Local, Option>) -> bool { +pub fn client_just_disconnected() -> impl FnMut(Local, Option>) -> bool { |mut last_connected: Local, transport| { let disconnected = transport.map(|transport| transport.is_disconnected()).unwrap_or(true); diff --git a/bevy_renet/src/transport.rs b/bevy_renet/src/transport.rs index bdcbd23c..2b77dfa8 100644 --- a/bevy_renet/src/transport.rs +++ b/bevy_renet/src/transport.rs @@ -111,7 +111,7 @@ pub fn client_connected() -> impl FnMut(Option>) -> } } -pub fn client_diconnected() -> impl FnMut(Option>) -> bool { +pub fn client_disconnected() -> impl FnMut(Option>) -> bool { |transport| match transport { Some(transport) => transport.is_disconnected(), None => true, @@ -135,7 +135,7 @@ pub fn client_just_connected() -> impl FnMut(Local, Option impl FnMut(Local, Option>) -> bool { +pub fn client_just_disconnected() -> impl FnMut(Local, Option>) -> bool { |mut last_connected: Local, transport| { let disconnected = transport.map(|transport| transport.is_disconnected()).unwrap_or(true);