diff --git a/Cargo.toml b/Cargo.toml index 6f5cb7f..4401bb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/src/bgp/message/update_builder.rs b/src/bgp/message/update_builder.rs index 81bd4a5..d670a2d 100644 --- a/src/bgp/message/update_builder.rs +++ b/src/bgp/message/update_builder.rs @@ -1244,7 +1244,6 @@ impl StandardCommunitiesList { self.len += 4; self.communities.push(community); } - // TODO fn add_community_from_iter() } @@ -1258,6 +1257,12 @@ impl From> for StandardCommunitiesList { } } +impl Default for StandardCommunitiesList { + fn default() -> Self { + Self::new() + } +} + //------------ Errors -------------------------------------------------------- #[derive(Debug)]