aboutsummaryrefslogtreecommitdiff
path: root/tests/test_deser.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-25 15:46:18 -0700
committerZeyla Hellyer <[email protected]>2017-04-25 15:46:18 -0700
commit9739d918931978f46cfb16ca1d860936d7a4a6dd (patch)
treef8c6c7e3105747514adbce4a9975553a0cbc6af1 /tests/test_deser.rs
parentFix embed length check (diff)
downloadserenity-9739d918931978f46cfb16ca1d860936d7a4a6dd.tar.xz
serenity-9739d918931978f46cfb16ca1d860936d7a4a6dd.zip
Fix decoding for `CurrentUser.discriminator`
Due to the serde 1.0 upgrade, integers are no longer automatically deserialized from Strings. To resolve this, create a visitor that performs the operation based on the input.
Diffstat (limited to 'tests/test_deser.rs')
-rw-r--r--tests/test_deser.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_deser.rs b/tests/test_deser.rs
index 1b6f8dc..a2d1be7 100644
--- a/tests/test_deser.rs
+++ b/tests/test_deser.rs
@@ -135,6 +135,11 @@ fn message_reaction_remove_all() {
}
#[test]
+fn ready() {
+ p!(ReadyEvent, "ready_1");
+}
+
+#[test]
fn typing_start() {
p!(TypingStartEvent, "typing_start_1");
}