diff options
| author | Maiddog <[email protected]> | 2017-08-26 17:55:43 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-27 00:55:43 +0200 |
| commit | 3e0b1032d80a1847558a752e8316d97f9ae58f04 (patch) | |
| tree | ca65390091cb3c0ab98b6497a1447ba69df3d20d /src/builder/edit_profile.rs | |
| parent | Use `$crate` for `Args` (diff) | |
| download | serenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.tar.xz serenity-3e0b1032d80a1847558a752e8316d97f9ae58f04.zip | |
Add ability to play DCA and Opus files. (#148)
Diffstat (limited to 'src/builder/edit_profile.rs')
| -rw-r--r-- | src/builder/edit_profile.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/builder/edit_profile.rs b/src/builder/edit_profile.rs index 6aa4e78..3bc121c 100644 --- a/src/builder/edit_profile.rs +++ b/src/builder/edit_profile.rs @@ -61,8 +61,10 @@ 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 } @@ -88,8 +90,10 @@ 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 } @@ -101,8 +105,10 @@ 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 } |