diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2025-06-15 16:43:42 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2025-06-15 16:56:11 +0530 |
commit | 837f273d0b06c8ca202fa3d61ca475d50a0a96fb (patch) | |
tree | a3d9205b7ab5e1039b77bd5989ce83ec4dca47f8 | |
parent | 375a45e5072895d28ad00c345a7964d7cd3409ce (diff) |
shorten imports.
-rw-r--r-- | src/vrrpv2.rs | 5 |
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 } |