From b5a88be024635d72d9bb546323147693734c7e93 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 17 Apr 2022 17:06:13 -0700 Subject: [PATCH] `cargo fmt` --- build/block.rs | 4 ++-- src/lib.rs | 2 +- src/server.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/block.rs b/build/block.rs index b7c8720..55b0490 100644 --- a/build/block.rs +++ b/build/block.rs @@ -324,7 +324,7 @@ pub fn build() -> anyhow::Result<()> { } /// Gets the value of the property with the given name from this block. - /// + /// /// If this block does not have the property, then `None` is returned. pub const fn get(self, name: PropName) -> Option { match self.to_type() { @@ -334,7 +334,7 @@ pub fn build() -> anyhow::Result<()> { } /// Sets the value of a propery on this block, returning the modified block. - /// + /// /// If this block does not have the given property or the property value is invalid, /// then the orginal block is returned unchanged. #[must_use] diff --git a/src/lib.rs b/src/lib.rs index 4d0cbe0..fd7104f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,7 @@ #![forbid(unsafe_code)] mod aabb; +pub mod block; mod block_pos; mod byte_angle; mod chunk; @@ -19,7 +20,6 @@ pub mod util; mod var_int; mod var_long; mod world; -pub mod block; pub use aabb::Aabb; pub use chunk::{Chunk, ChunkPos}; diff --git a/src/server.rs b/src/server.rs index 3c6e3c0..1e3b240 100644 --- a/src/server.rs +++ b/src/server.rs @@ -120,8 +120,8 @@ struct NewClientMessage { reply: oneshot::Sender>, } -/// The result type returned from [`ServerConfig::start`] after the server is shut -/// down. +/// The result type returned from [`ServerConfig::start`] after the server is +/// shut down. pub type ShutdownResult = Result<(), ShutdownError>; pub type ShutdownError = Box;