summaryrefslogtreecommitdiff
path: root/src/vrrpv2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vrrpv2.rs')
-rw-r--r--src/vrrpv2.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs
index ad68e6e..539d67f 100644
--- a/src/vrrpv2.rs
+++ b/src/vrrpv2.rs
@@ -1,5 +1,4 @@
-use std::io::{self, Cursor};
-use std::io::{Read, Write};
+use std::io::{self, Cursor, Read, Write};
use std::net::Ipv4Addr;
/// A VRRP version 2 packet.
@@ -58,7 +57,7 @@ impl std::fmt::Display for VRRPv2Error {
impl std::error::Error for VRRPv2Error {}
-impl From<std::io::Error> for VRRPv2Error {
+impl From<io::Error> for VRRPv2Error {
fn from(_err: std::io::Error) -> VRRPv2Error {
VRRPv2Error::ParseError
}