aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_profile.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-08-18 16:14:32 -0700
committerZeyla Hellyer <[email protected]>2017-08-18 17:52:53 -0700
commite4113570967a1fb13539efbfa2cf7285b19d95ba (patch)
tree06bb020fcfaa5f8323454dfb525272314a900186 /src/builder/edit_profile.rs
parentMove Clippy lints to a cfg_attr (diff)
downloadserenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.tar.xz
serenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.zip
Apply rustfmt
Diffstat (limited to 'src/builder/edit_profile.rs')
-rw-r--r--src/builder/edit_profile.rs18
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
}