From e68ca077bb49d2ed59bf9782bf5b08bb81368814 Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Sun, 24 Mar 2024 13:35:30 -0500 Subject: [PATCH] fix fmt --- server/src/bits.rs | 2 +- server/src/system/player_join_world.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/server/src/bits.rs b/server/src/bits.rs index 424a90d9..2fdff12c 100644 --- a/server/src/bits.rs +++ b/server/src/bits.rs @@ -104,7 +104,7 @@ impl BitStorage { pub fn into_data(self) -> Vec { self.data } - + /// Create a new `BitStorage` with the given number of bits per entry. /// `size` is the number of entries in the `BitStorage`. pub fn new(bits: usize, size: usize, data: Option>) -> Result { diff --git a/server/src/system/player_join_world.rs b/server/src/system/player_join_world.rs index 4840640b..3a0d4e59 100644 --- a/server/src/system/player_join_world.rs +++ b/server/src/system/player_join_world.rs @@ -21,8 +21,10 @@ use valence_protocol::{ }; use valence_registry::{biome::BiomeId, RegistryIdx}; -use crate::{chunk::heightmap, handshake::Packets, KickPlayer, Player, PlayerJoinWorld, GLOBAL}; -use crate::bits::BitStorage; +use crate::{ + bits::BitStorage, chunk::heightmap, handshake::Packets, KickPlayer, Player, PlayerJoinWorld, + GLOBAL, +}; pub fn player_join_world( r: Receiver,