summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vrrpv2.rs4
1 files changed, 2 insertions, 2 deletions
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<u8>;
fn read_u16(&mut self) -> io::Result<u16>;
fn read_u32(&mut self) -> io::Result<u32>;
}
-impl<T: AsRef<[u8]>> ByteReader for Cursor<T> {
+impl<T: AsRef<[u8]>> BytesReader for Cursor<T> {
fn read_u8(&mut self) -> io::Result<u8> {
let mut buffer = [0; 1];
self.read_exact(&mut buffer)?;