From 49a4934c9dbac13e7019abd8966b367a39b350ba Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Tue, 19 Nov 2024 18:44:07 +0530 Subject: Impl std:error::Error. --- src/vrrpv2.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index 8adf7f0..a863cb4 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -56,11 +56,7 @@ impl std::fmt::Display for VRRPv2Error { } } -impl From for VRRPv2Error { - fn from(_err: std::io::Error) -> VRRPv2Error { - VRRPv2Error::ParseError - } -} +impl std::error::Error for VRRPv2Error {} impl From for VRRPv2Error { fn from(_err: std::io::Error) -> VRRPv2Error { -- cgit v1.2.3