Skip to content

Commit

Permalink
Merge branch 'bincode' into rc1-additions
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Jun 24, 2024
2 parents 431050a + 870230c commit c584efb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ license = "BSD-3-Clause"

[dependencies]
# inetnum = { version = "0.1.0", features = ["arbitrary", "serde"] }
inetnum = { path = "../inetnum", features = ["arbitrary", "serde", "bincode"] }
# inetnum = { path = "../inetnum", features = ["arbitrary", "serde", "bincode"] }
inetnum = { git = "https://github.com/NLnetLabs/inetnum", branch = "bincode", features = ["arbitrary", "serde", "bincode"] }
arbitrary = { version = "1.3.1", optional = true, features = ["derive"] }
bytes = { version = "1.2", optional = true }
chrono = { version = "0.4.20", optional = true, default-features = false }
Expand Down
7 changes: 6 additions & 1 deletion src/bgp/message/update_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,6 @@ impl StandardCommunitiesList {
self.len += 4;
self.communities.push(community);
}

// TODO fn add_community_from_iter()
}

Expand All @@ -1258,6 +1257,12 @@ impl From<Vec<StandardCommunity>> for StandardCommunitiesList {
}
}

impl Default for StandardCommunitiesList {
fn default() -> Self {
Self::new()
}
}

//------------ Errors --------------------------------------------------------

#[derive(Debug)]
Expand Down

0 comments on commit c584efb

Please sign in to comment.