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 /src/builder/edit_profile.rs | |
| parent | Fix compiles of a variety of feature combinations (diff) | |
| download | serenity-dae2cb77b407044f44a7a2790d93efba3891854e.tar.xz serenity-dae2cb77b407044f44a7a2790d93efba3891854e.zip | |
Apply rustfmt
Diffstat (limited to 'src/builder/edit_profile.rs')
| -rw-r--r-- | src/builder/edit_profile.rs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/builder/edit_profile.rs b/src/builder/edit_profile.rs index 3bc121c..6aa4e78 100644 --- a/src/builder/edit_profile.rs +++ b/src/builder/edit_profile.rs @@ -61,10 +61,8 @@ impl EditProfile { /// /// [provided]: #method.password pub fn email(mut self, email: &str) -> Self { - self.0.insert( - "email".to_owned(), - Value::String(email.to_owned()), - ); + self.0 + .insert("email".to_owned(), Value::String(email.to_owned())); self } @@ -90,10 +88,8 @@ impl EditProfile { /// [modifying the password]: #method.new_password /// [modifying the associated email address]: #method.email pub fn password(mut self, password: &str) -> Self { - self.0.insert( - "password".to_owned(), - Value::String(password.to_owned()), - ); + self.0 + .insert("password".to_owned(), Value::String(password.to_owned())); self } @@ -105,10 +101,8 @@ impl EditProfile { /// If there are no available discriminators with the requested username, /// an error will occur. pub fn username(mut self, username: &str) -> Self { - self.0.insert( - "username".to_owned(), - Value::String(username.to_owned()), - ); + self.0 + .insert("username".to_owned(), Value::String(username.to_owned())); self } |