aboutsummaryrefslogtreecommitdiff
path: root/tests/test_user.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 06:42:48 +0200
committeracdenisSK <[email protected]>2017-07-27 07:30:23 +0200
commit550030264952f0e0043b63f4582bb817ef8bbf37 (patch)
treeb921e2f78fd603a5ca671623083a32806fd16090 /tests/test_user.rs
parentUse a consistent indentation style (diff)
downloadserenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz
serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip
rustfmt
Diffstat (limited to 'tests/test_user.rs')
-rw-r--r--tests/test_user.rs18
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());