aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src/world.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 19:36:59 -0800
committermat <git@matdoes.dev>2025-05-30 19:36:59 -0800
commitae4b1e85e669bc882d158509ef1eda46c6b2a72e (patch)
treeadf81cc01b0ce1575e95b99ad109fd92db1738f6 /azalea-world/src/world.rs
parenta64c6505049082175224802c5be51ac8f0cf4677 (diff)
downloadazalea-drasl-ae4b1e85e669bc882d158509ef1eda46c6b2a72e.tar.xz
fix clippy issues and improve formatting everywhere
Diffstat (limited to 'azalea-world/src/world.rs')
-rw-r--r--azalea-world/src/world.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs
index 4b2b2a19..9a734ab1 100644
--- a/azalea-world/src/world.rs
+++ b/azalea-world/src/world.rs
@@ -1,9 +1,9 @@
-use std::fmt::{self, Display, Formatter};
-use std::hash::{Hash, Hasher};
-use std::io::{self, Cursor};
use std::{
collections::{HashMap, HashSet},
fmt::Debug,
+ fmt::{self, Display},
+ hash::{Hash, Hasher},
+ io::{self, Cursor},
};
use azalea_block::BlockState;
@@ -84,7 +84,7 @@ impl AzaleaRead for MinecraftEntityId {
}
}
impl AzaleaWrite for MinecraftEntityId {
- fn azalea_write(&self, buf: &mut impl io::Write) -> Result<(), io::Error> {
+ fn azalea_write(&self, buf: &mut impl io::Write) -> io::Result<()> {
i32::azalea_write(&self.0, buf)
}
}
@@ -94,12 +94,12 @@ impl AzaleaReadVar for MinecraftEntityId {
}
}
impl AzaleaWriteVar for MinecraftEntityId {
- fn azalea_write_var(&self, buf: &mut impl io::Write) -> Result<(), io::Error> {
+ fn azalea_write_var(&self, buf: &mut impl io::Write) -> io::Result<()> {
i32::azalea_write_var(&self.0, buf)
}
}
impl Display for MinecraftEntityId {
- fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "eid({})", self.0)
}
}
@@ -176,7 +176,7 @@ impl Instance {
}
impl Debug for PartialInstance {
- fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("PartialInstance")
.field("chunks", &self.chunks)
.field("entity_infos", &self.entity_infos)