aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 17:48:52 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 17:48:52 -0700
commitdae2cb77b407044f44a7a2790d93efba3891854e (patch)
treebef263c4490536cf8b56e988e71dd1aa43bc2696 /tests
parentFix compiles of a variety of feature combinations (diff)
downloadserenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz
serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip
Apply rustfmt
Diffstat (limited to 'tests')
-rw-r--r--tests/test_user.rs32
1 files changed, 20 insertions, 12 deletions
diff --git a/tests/test_user.rs b/tests/test_user.rs
index 59ebd57..21dce8b 100644
--- a/tests/test_user.rs
+++ b/tests/test_user.rs
@@ -18,20 +18,28 @@ mod model {
fn test_core() {
let mut user = gen();
- assert!(user.avatar_url().unwrap().ends_with(
- "/avatars/210/abc.webp?size=1024",
- ));
- assert!(user.static_avatar_url().unwrap().ends_with(
- "/avatars/210/abc.webp?size=1024",
- ));
+ assert!(
+ user.avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/abc.webp?size=1024",)
+ );
+ assert!(
+ user.static_avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/abc.webp?size=1024",)
+ );
user.avatar = Some("a_aaa".to_owned());
- assert!(user.avatar_url().unwrap().ends_with(
- "/avatars/210/a_aaa.gif?size=1024",
- ));
- assert!(user.static_avatar_url().unwrap().ends_with(
- "/avatars/210/a_aaa.webp?size=1024",
- ));
+ assert!(
+ user.avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/a_aaa.gif?size=1024",)
+ );
+ assert!(
+ user.static_avatar_url()
+ .unwrap()
+ .ends_with("/avatars/210/a_aaa.webp?size=1024",)
+ );
user.avatar = None;
assert!(user.avatar_url().is_none());