Update result type in some files.
Some checks are pending
Rust / build (push) Waiting to run

This commit is contained in:
Rayhaan Jaufeerally
2024-10-07 10:23:07 +00:00
parent 173487b411
commit 8c371648d0
3 changed files with 75 additions and 31 deletions

View File

@ -449,7 +449,7 @@ impl Display for OpenMessage {
}
/// UPDATE message and subtypes.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Default)]
pub struct UpdateMessage {
pub withdrawn_nlri: Vec<NLRI>,
pub path_attributes: Vec<PathAttribute>,

View File

@ -205,7 +205,7 @@ impl TryInto<IpAddr> for NLRI {
}
impl TryFrom<&str> for NLRI {
type Error = eyre::Report;
type Error = eyre::ErrReport;
fn try_from(value: &str) -> Result<Self, Self::Error> {
let parts: Vec<&str> = value.split("/").collect();
if parts.len() != 2 {