mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-04-23 00:27:06 +08:00
remove hashbrown (#2108)
This commit is contained in:
@@ -165,7 +165,6 @@ network-interface = "2.0"
|
|||||||
|
|
||||||
# for ospf route
|
# for ospf route
|
||||||
petgraph = "0.8.1"
|
petgraph = "0.8.1"
|
||||||
hashbrown = "0.15.3"
|
|
||||||
ordered_hash_map = "0.5.0"
|
ordered_hash_map = "0.5.0"
|
||||||
|
|
||||||
# for wireguard
|
# for wireguard
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
use core::cmp::Ordering;
|
use core::cmp::Ordering;
|
||||||
use hashbrown::hash_map::{
|
|
||||||
Entry::{Occupied, Vacant},
|
|
||||||
HashMap,
|
|
||||||
};
|
|
||||||
use petgraph::{
|
use petgraph::{
|
||||||
algo::Measure,
|
algo::Measure,
|
||||||
visit::{EdgeRef as _, IntoEdges, VisitMap as _, Visitable},
|
visit::{EdgeRef, IntoEdges, VisitMap, Visitable},
|
||||||
};
|
};
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||||
use std::{collections::BinaryHeap, hash::Hash};
|
use std::{collections::BinaryHeap, hash::Hash};
|
||||||
|
|
||||||
/// `MinScored<K, T>` holds a score `K` and a scored object `T` in
|
/// `MinScored<K, T>` holds a score `K` and a scored object `T` in
|
||||||
|
|||||||
Reference in New Issue
Block a user