diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:46:37 -0700 |
| commit | 0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch) | |
| tree | 03dd981bc04ba8475333d057705820c3320e3a97 /src/model/user.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index b28997f..3ae33aa 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -85,10 +85,10 @@ impl CurrentUser { pub fn edit<F>(&mut self, f: F) -> Result<()> where F: FnOnce(EditProfile) -> EditProfile { let mut map = Map::new(); - map.insert("username".to_owned(), Value::String(self.name.clone())); + map.insert("username".to_string(), Value::String(self.name.clone())); if let Some(email) = self.email.as_ref() { - map.insert("email".to_owned(), Value::String(email.clone())); + map.insert("email".to_string(), Value::String(email.clone())); } match http::edit_profile(&f(EditProfile(map)).0) { |