diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-23 10:15:26 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-23 10:15:26 -0700 |
| commit | 8c0aeacadb93d3b56fb98beb882eaef1f79cd652 (patch) | |
| tree | 7c1d26addbf15537c6f69a6ac9623276002b155a /src/model | |
| parent | Fix {Invite,RichInvite}::url tests (diff) | |
| download | serenity-8c0aeacadb93d3b56fb98beb882eaef1f79cd652.tar.xz serenity-8c0aeacadb93d3b56fb98beb882eaef1f79cd652.zip | |
Add more examples and improve some others
Add examples to some functions, and update some of the old examples to
use the `?` operator instead of unwrapping.
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/misc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs index 4da3c01..3ac8f47 100644 --- a/src/model/misc.rs +++ b/src/model/misc.rs @@ -123,7 +123,7 @@ impl FromStr for RoleId { } /// A version of an emoji used only when solely the Id and name are known. -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)] pub struct EmojiIdentifier { /// The Id of the emoji. pub id: EmojiId, |