aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
committeracdenisSK <[email protected]>2017-07-27 08:10:41 +0200
commit70b5097aaac85f970c32ceb988dbb5f5d575ee0f (patch)
treed2f391d3b552cfae58b74748a2a2aa5ae80c7986 /src/utils
parentrustfmt (diff)
downloadserenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.tar.xz
serenity-70b5097aaac85f970c32ceb988dbb5f5d575ee0f.zip
Change the config a bit, and a few nitpicks
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mod.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 9cd68a1..8467613 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -299,12 +299,10 @@ pub fn parse_emoji(mention: &str) -> Option<EmojiIdentifier> {
}
match id.parse::<u64>() {
- Ok(x) => {
- Some(EmojiIdentifier {
- name: name,
- id: EmojiId(x),
- })
- },
+ Ok(x) => Some(EmojiIdentifier {
+ name: name,
+ id: EmojiId(x),
+ }),
_ => None,
}
} else {