summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2019-11-03 10:24:26 -0600
committerStuart Stock <stuart@int08h.com>2019-11-03 10:24:26 -0600
commit827f978a00b4267d4faf939c52e2e61ab95ddc66 (patch)
treec86b2cbb6b5d21210e77fe669038723cf1ff61bb
parentc92cd1d3fcb9f249d78a13d06e5d6cbdff64693b (diff)
downloadroughenough-827f978a00b4267d4faf939c52e2e61ab95ddc66.zip
Replace hashbrown with std hashmap
-rw-r--r--src/stats/aggregated.rs5
-rw-r--r--src/stats/mod.rs7
-rw-r--r--src/stats/per_client.rs5
3 files changed, 7 insertions, 10 deletions
diff --git a/src/stats/aggregated.rs b/src/stats/aggregated.rs
index d79c6e3..3488513 100644
--- a/src/stats/aggregated.rs
+++ b/src/stats/aggregated.rs
@@ -12,10 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-use hashbrown::HashMap;
-use hashbrown::hash_map::Iter;
-
use std::net::IpAddr;
+use std::collections::HashMap;
+use std::collections::hash_map::Iter;
use crate::stats::ClientStatEntry;
use crate::stats::ServerStats;
diff --git a/src/stats/mod.rs b/src/stats/mod.rs
index ad90bd2..094ad18 100644
--- a/src/stats/mod.rs
+++ b/src/stats/mod.rs
@@ -19,13 +19,12 @@
mod aggregated;
mod per_client;
+use std::net::IpAddr;
+use std::collections::hash_map::Iter;
+
pub use crate::stats::aggregated::AggregatedStats;
pub use crate::stats::per_client::PerClientStats;
-use hashbrown::hash_map::Iter;
-
-use std::net::IpAddr;
-
///
/// Specific metrics tracked per each client
///
diff --git a/src/stats/per_client.rs b/src/stats/per_client.rs
index 4905823..09245ac 100644
--- a/src/stats/per_client.rs
+++ b/src/stats/per_client.rs
@@ -12,10 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-use hashbrown::HashMap;
-use hashbrown::hash_map::Iter;
-
use std::net::IpAddr;
+use std::collections::HashMap;
+use std::collections::hash_map::Iter;
use crate::stats::ClientStatEntry;
use crate::stats::ServerStats;