diff options
| author | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
| commit | dcbd690f21665e22ea250024a1aa85dec34e6c9e (patch) | |
| tree | 411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-buf/src | |
| parent | b0a2a809331b0f781517649857d31e0aec67d300 (diff) | |
| download | azalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz | |
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-buf/src')
| -rw-r--r-- | azalea-buf/src/definitions.rs | 2 | ||||
| -rw-r--r-- | azalea-buf/src/read.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-buf/src/definitions.rs b/azalea-buf/src/definitions.rs index 18581aa0..58bec752 100644 --- a/azalea-buf/src/definitions.rs +++ b/azalea-buf/src/definitions.rs @@ -1,7 +1,7 @@ use std::ops::Deref; /// A `Vec<u8>` that isn't prefixed by a VarInt with the size. -#[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[derive(Clone, Debug, Eq, Hash, PartialEq)] pub struct UnsizedByteArray(pub Vec<u8>); impl Deref for UnsizedByteArray { diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index a906c8c1..7cea9695 100644 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -13,7 +13,7 @@ use tracing::warn; use super::{MAX_STRING_LENGTH, UnsizedByteArray}; -#[derive(Error, Debug)] +#[derive(Debug, Error)] pub enum BufReadError { #[error("Invalid VarInt")] InvalidVarInt, |
