Remove useless public identifier

This commit is contained in:
Tipragot 2023-04-29 15:19:09 +02:00
parent f3868b17cf
commit 1a8136b078
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ pub trait PacketHandlerFn: Fn(Vec<u8>, &mut World) + Send + Sync + 'static {}
impl<T: Fn(Vec<u8>, &mut World) + Send + Sync + 'static> PacketHandlerFn for T {}
/// A function that handle a received [Packet]s.
pub type PacketHandler = Box<dyn PacketHandlerFn>;
type PacketHandler = Box<dyn PacketHandlerFn>;
/// A Bevy resource that store the packets handlers.
#[derive(Resource)]

View file

@ -17,7 +17,7 @@ pub trait PacketHandlerFn:
impl<T: Fn(Entity, Connection, Vec<u8>, &mut World) + Send + Sync + 'static> PacketHandlerFn for T {}
/// A function that handle a received [Packet]s.
pub type PacketHandler = Box<dyn PacketHandlerFn>;
type PacketHandler = Box<dyn PacketHandlerFn>;
/// A Bevy resource that store the packets handlers.
#[derive(Resource)]