summaryrefslogtreecommitdiff
path: root/src/stats/per_client.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2019-08-11 18:09:26 -0500
committerStuart Stock <stuart@int08h.com>2019-08-11 18:09:26 -0500
commit266f1adc99f780edab22096ed13f624bfdcb6674 (patch)
tree8185063cc9653105067c1e9caaf2495c289054bc /src/stats/per_client.rs
parenta0165c01946efbedd2f274bad02a33ab52c01e32 (diff)
downloadroughenough-266f1adc99f780edab22096ed13f624bfdcb6674.zip
Address clippy lints
* More consistent use of `dyn` * Add default implementations * Misc clippy changes
Diffstat (limited to 'src/stats/per_client.rs')
-rw-r--r--src/stats/per_client.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stats/per_client.rs b/src/stats/per_client.rs
index 8641fde..4905823 100644
--- a/src/stats/per_client.rs
+++ b/src/stats/per_client.rs
@@ -33,6 +33,12 @@ pub struct PerClientStats {
max_clients: usize,
}
+impl Default for PerClientStats {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl PerClientStats {
/// Maximum number of entries to prevent unbounded memory growth.