refactor: clippy suggestions

This commit is contained in:
Greg Heartsfield
2022-09-24 08:30:22 -05:00
parent 480c5e4e58
commit 8fa58de49a
11 changed files with 24 additions and 28 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ use crate::error::{Error, Result};
use serde::{Deserialize, Serialize};
/// Close command in network format
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct CloseCmd {
/// Protocol command, expected to always be "CLOSE".
cmd: String,
@@ -14,7 +14,7 @@ pub struct CloseCmd {
}
/// Identifier of the subscription to be closed.
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct Close {
/// The subscription identifier being closed.
pub id: String,