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
@@ -20,14 +20,14 @@ lazy_static! {
}
/// Event command in network format.
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct EventCmd {
cmd: String, // expecting static "EVENT"
event: Event,
}
/// Parsed nostr event.
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct Event {
pub id: String,
pub(crate) pubkey: String,