diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-11-19 18:44:07 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-11-19 18:44:07 +0530 |
commit | 49a4934c9dbac13e7019abd8966b367a39b350ba (patch) | |
tree | 9955d8232def311d0e6e17bf76b50db57398f782 | |
parent | d7bee9912950483ce7047c1f91d684ef76fe1f98 (diff) |
Impl std:error::Error.
-rw-r--r-- | src/vrrpv2.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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<std::io::Error> for VRRPv2Error { - fn from(_err: std::io::Error) -> VRRPv2Error { - VRRPv2Error::ParseError - } -} +impl std::error::Error for VRRPv2Error {} impl From<std::io::Error> for VRRPv2Error { fn from(_err: std::io::Error) -> VRRPv2Error { |