1
0
mirror of https://github.com/tonarino/innernet.git synced 2025-02-09 13:47:14 +02:00

shared(types): undo with_root until a rewrite of leaves()

This commit is contained in:
Jake McGinty 2021-06-23 20:31:22 +09:00
parent 3c8530d956
commit 62e6464064

View File

@ -237,10 +237,6 @@ impl<'a> CidrTree<'a> {
.iter()
.min_by_key(|c| c.cidr.prefix())
.expect("failed to find root CIDR");
Self::with_root(cidrs, root)
}
pub fn with_root(cidrs: &'a [Cidr], root: &'a Cidr) -> Self {
Self {
cidrs,
contents: root,