From ca70e5e321a3c174c53d0650feed84db471ac30d Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 11 Dec 2025 23:21:42 -1030 Subject: enable str_to_string clippy lint --- azalea-buf/src/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-buf/src/read.rs') diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index 95dc79ac..a906c8c1 100644 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -103,7 +103,7 @@ fn read_utf_with_len(buf: &mut Cursor<&[u8]>, max_length: u32) -> Result length as usize { return Err(BufReadError::StringLengthTooLong { length, max_length }); } @@ -422,7 +422,7 @@ impl AzaleaRead for simdnbt::owned::NbtCompound { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result { match simdnbt::owned::read_tag(buf).map_err(simdnbt::Error::from)? { simdnbt::owned::NbtTag::Compound(compound) => Ok(compound), - _ => Err(BufReadError::Custom("Expected compound tag".to_string())), + _ => Err(BufReadError::Custom("Expected compound tag".to_owned())), } } } -- cgit v1.2.3