diff options
Diffstat (limited to 'azalea-buf/src/read.rs')
| -rwxr-xr-x | azalea-buf/src/read.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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 }, |
