Skip to content

Commit

Permalink
Make User and Ban comparable and hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Jul 10, 2017
1 parent a7a0945 commit 64bfc54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use ::builder::{EditGuild, EditMember, EditRole};
use ::constants::LARGE_THRESHOLD;

/// A representation of a banning of a user.
#[derive(Clone, Debug, Deserialize)]
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Hash)]
pub struct Ban {
/// The reason given for this ban.
pub reason: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion src/model/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl Default for OnlineStatus {
}

/// Information about a user.
#[derive(Clone, Debug, Deserialize)]
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Hash)]
pub struct User {
/// The unique Id of the user. Can be used to calculate the account's
/// cration date.
Expand Down

0 comments on commit 64bfc54

Please sign in to comment.