Skip to content

Commit

Permalink
Merge pull request #33 from Sir-Photch/master
Browse files Browse the repository at this point in the history
Derive Eq, PartialEq on MessageRole
  • Loading branch information
pepperoni21 authored Mar 24, 2024
2 parents f38634d + a0fdb9a commit 1f7c8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generation/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl ChatMessage {
}
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum MessageRole {
#[serde(rename = "user")]
User,
Expand Down

0 comments on commit 1f7c8e3

Please sign in to comment.