From dcbd690f21665e22ea250024a1aa85dec34e6c9e Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Dec 2025 11:14:40 +0930 Subject: sort derives with cargo sort-derives might add to ci later, unsure how to do it without adding significant friction for contributors though --- azalea-buf/src/definitions.rs | 2 +- azalea-buf/src/read.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-buf/src') 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` 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); 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, -- cgit v1.2.3