From 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 22 Feb 2025 23:01:54 +0000 Subject: update to rust edition 2024 --- azalea-buf/src/read.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'azalea-buf/src/read.rs') diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index 71c96c34..e6f7aa51 100755 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -5,11 +5,11 @@ use std::{ io::{Cursor, Read}, }; -use byteorder::{ReadBytesExt, BE}; +use byteorder::{BE, ReadBytesExt}; use thiserror::Error; use tracing::warn; -use super::{UnsizedByteArray, MAX_STRING_LENGTH}; +use super::{MAX_STRING_LENGTH, UnsizedByteArray}; #[derive(Error, Debug)] pub enum BufReadError { @@ -19,7 +19,9 @@ pub enum BufReadError { InvalidVarLong, #[error("Error reading bytes")] CouldNotReadBytes, - #[error("The received encoded string buffer length is longer than maximum allowed ({length} > {max_length})")] + #[error( + "The received encoded string buffer length is longer than maximum allowed ({length} > {max_length})" + )] StringLengthTooLong { length: u32, max_length: u32 }, #[error("The received Vec length is longer than maximum allowed ({length} > {max_length})")] VecLengthTooLong { length: u32, max_length: u32 }, -- cgit v1.2.3