refactor: clippy suggestions

This commit is contained in:
Greg Heartsfield
2021-12-11 21:56:52 -06:00
parent ca0f01c94b
commit e732f918f9
7 changed files with 37 additions and 42 deletions
+7 -1
View File
@@ -20,6 +20,12 @@ pub struct ClientConn {
max_subs: usize,
}
impl Default for ClientConn {
fn default() -> Self {
Self::new()
}
}
impl ClientConn {
/// Create a new, empty connection state.
pub fn new() -> Self {
@@ -77,7 +83,7 @@ impl ClientConn {
"Registered new subscription, currently have {} active subs",
self.subscriptions.len()
);
return Ok(());
Ok(())
}
/// Remove the subscription for this connection.