From 0d7c580deb7638d07ca9259f98c242309d61ca0c Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 1 Mar 2024 18:29:44 +0530 Subject: ByteReader -> BytesReader. --- src/vrrpv2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index cae0f31..f8445fb 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -51,13 +51,13 @@ pub enum VRRPv2AuthType { VRRPv2AuthReserved2 = 0x02, } -trait ByteReader { +trait BytesReader { fn read_u8(&mut self) -> io::Result; fn read_u16(&mut self) -> io::Result; fn read_u32(&mut self) -> io::Result; } -impl> ByteReader for Cursor { +impl> BytesReader for Cursor { fn read_u8(&mut self) -> io::Result { let mut buffer = [0; 1]; self.read_exact(&mut buffer)?; -- cgit v1.2.3