diff options
author | Stuart Stock <stuart@int08h.com> | 2019-08-11 18:09:26 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2019-08-11 18:09:26 -0500 |
commit | 266f1adc99f780edab22096ed13f624bfdcb6674 (patch) | |
tree | 8185063cc9653105067c1e9caaf2495c289054bc /src/stats/per_client.rs | |
parent | a0165c01946efbedd2f274bad02a33ab52c01e32 (diff) | |
download | roughenough-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.rs | 6 |
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. |