aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_profile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder/edit_profile.rs')
-rw-r--r--src/builder/edit_profile.rs18
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
}