diff options
| author | acdenisSK <[email protected]> | 2017-07-27 06:42:48 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-27 07:30:23 +0200 |
| commit | 550030264952f0e0043b63f4582bb817ef8bbf37 (patch) | |
| tree | b921e2f78fd603a5ca671623083a32806fd16090 /tests/test_user.rs | |
| parent | Use a consistent indentation style (diff) | |
| download | serenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip | |
rustfmt
Diffstat (limited to 'tests/test_user.rs')
| -rw-r--r-- | tests/test_user.rs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/test_user.rs b/tests/test_user.rs index d037dc2..51f32e1 100644 --- a/tests/test_user.rs +++ b/tests/test_user.rs @@ -1,6 +1,6 @@ extern crate serenity; -#[cfg(feature="model")] +#[cfg(feature = "model")] mod model { use serenity::model::{User, UserId}; @@ -18,12 +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()); |