From f42ef4bec6d1c63c0d8564cfb06e996666dedbe3 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 21 Feb 2026 14:35:01 +0100 Subject: clean up clippy lints --- src/primitive/unsignedint.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/primitive/unsignedint.rs') diff --git a/src/primitive/unsignedint.rs b/src/primitive/unsignedint.rs index a51ca6f..8176a9d 100644 --- a/src/primitive/unsignedint.rs +++ b/src/primitive/unsignedint.rs @@ -44,7 +44,7 @@ impl Serialize for u64 { impl Deserialize for u64 { fn parse(b: &[u8]) -> Result<(usize, Self), ProtocolError> { let mut rdr = Cursor::new(&b[0..8]); - return Ok((8, rdr.read_u64::()?)); + Ok((8, rdr.read_u64::()?)) } } @@ -61,7 +61,7 @@ impl Serialize for u32 { impl Deserialize for u32 { fn parse(b: &[u8]) -> Result<(usize, Self), ProtocolError> { let mut rdr = Cursor::new(&b[0..4]); - return Ok((4, rdr.read_u32::()?)); + Ok((4, rdr.read_u32::()?)) } } @@ -78,7 +78,7 @@ impl Serialize for u16 { impl Deserialize for u16 { fn parse(b: &[u8]) -> Result<(usize, Self), ProtocolError> { let mut rdr = Cursor::new(&b[0..2]); - return Ok((2, rdr.read_u16::()?)); + Ok((2, rdr.read_u16::()?)) } } @@ -94,7 +94,7 @@ impl Serialize for u8 { impl Deserialize for u8 { fn parse(b: &[u8]) -> Result<(usize, Self), ProtocolError> { - return Ok((1, b[0])); + Ok((1, b[0])) } } -- cgit v1.2.3