diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:52 -0700 |
| commit | dae2cb77b407044f44a7a2790d93efba3891854e (patch) | |
| tree | bef263c4490536cf8b56e988e71dd1aa43bc2696 /tests | |
| parent | Fix compiles of a variety of feature combinations (diff) | |
| download | serenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip | |
Apply rustfmt
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_user.rs | 32 |
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()); |