aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-08-18 16:14:32 -0700
committerZeyla Hellyer <[email protected]>2017-08-18 17:52:53 -0700
commite4113570967a1fb13539efbfa2cf7285b19d95ba (patch)
tree06bb020fcfaa5f8323454dfb525272314a900186 /tests
parentMove Clippy lints to a cfg_attr (diff)
downloadserenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.tar.xz
serenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.zip
Apply rustfmt
Diffstat (limited to 'tests')
-rw-r--r--tests/test_user.rs32
1 files changed, 12 insertions, 20 deletions
diff --git a/tests/test_user.rs b/tests/test_user.rs
index 8d3f780..59ebd57 100644
--- a/tests/test_user.rs
+++ b/tests/test_user.rs
@@ -18,28 +18,20 @@ 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());