aboutsummaryrefslogtreecommitdiff
path: root/tests/test_formatters.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-25 15:48:13 -0700
committerZeyla Hellyer <[email protected]>2017-04-25 15:48:13 -0700
commit0f41ffc811827fdd45e4e631884909e33fa8769e (patch)
tree40c6d5091097ee86ed72e9868f77350bdaed078a /tests/test_formatters.rs
parentFix decoding for `CurrentUser.discriminator` (diff)
downloadserenity-0f41ffc811827fdd45e4e631884909e33fa8769e.tar.xz
serenity-0f41ffc811827fdd45e4e631884909e33fa8769e.zip
Make `User.discriminator` a u16
Change the User struct's `discriminator` field to a u16 for performance. The User struct's `discriminator` field was previously a u16 but changed to a `String` for ease-of-use. Lately the library has been gearing more towards performance where possible while not sacrificing ergonomics _too much_ in most scenarios.
Diffstat (limited to 'tests/test_formatters.rs')
-rw-r--r--tests/test_formatters.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_formatters.rs b/tests/test_formatters.rs
index 3b52dac..fa36832 100644
--- a/tests/test_formatters.rs
+++ b/tests/test_formatters.rs
@@ -49,7 +49,7 @@ fn test_mention() {
id: UserId(6),
avatar: None,
bot: false,
- discriminator: "4132".to_owned(),
+ discriminator: 4132,
name: "fake".to_owned(),
};
let member = Member {