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 /src/builder/edit_profile.rs | |
| parent | Use a consistent indentation style (diff) | |
| download | serenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip | |
rustfmt
Diffstat (limited to 'src/builder/edit_profile.rs')
| -rw-r--r-- | src/builder/edit_profile.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/builder/edit_profile.rs b/src/builder/edit_profile.rs index 2b54f68..63daec3 100644 --- a/src/builder/edit_profile.rs +++ b/src/builder/edit_profile.rs @@ -1,4 +1,4 @@ -use ::internal::prelude::*; +use internal::prelude::*; /// A builder to edit the current user's settings, to be used in conjunction /// with [`CurrentUser::edit`]. @@ -61,7 +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 } @@ -73,7 +74,8 @@ impl EditProfile { /// /// [provided]: #method.password pub fn new_password(mut self, new_password: &str) -> Self { - self.0.insert("new_password".to_owned(), Value::String(new_password.to_owned())); + self.0.insert("new_password".to_owned(), + Value::String(new_password.to_owned())); self } @@ -84,7 +86,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 } @@ -96,7 +99,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 } |