From 8c0aeacadb93d3b56fb98beb882eaef1f79cd652 Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Tue, 23 May 2017 10:15:26 -0700 Subject: 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. --- src/model/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model') 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, -- cgit v1.2.3