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/builder/create_invite.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/builder/create_invite.rs')
| -rw-r--r-- | src/builder/create_invite.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/builder/create_invite.rs b/src/builder/create_invite.rs index 58893fc..5f4f0bf 100644 --- a/src/builder/create_invite.rs +++ b/src/builder/create_invite.rs @@ -90,7 +90,7 @@ impl CreateInvite { /// ``` pub fn max_age(mut self, max_age: u64) -> Self { self.0 - .insert("max_age".to_owned(), Value::Number(Number::from(max_age))); + .insert("max_age".to_string(), Value::Number(Number::from(max_age))); self } @@ -124,7 +124,7 @@ impl CreateInvite { /// ``` pub fn max_uses(mut self, max_uses: u64) -> Self { self.0 - .insert("max_uses".to_owned(), Value::Number(Number::from(max_uses))); + .insert("max_uses".to_string(), Value::Number(Number::from(max_uses))); self } @@ -156,7 +156,7 @@ impl CreateInvite { /// ``` pub fn temporary(mut self, temporary: bool) -> Self { self.0 - .insert("temporary".to_owned(), Value::Bool(temporary)); + .insert("temporary".to_string(), Value::Bool(temporary)); self } @@ -187,7 +187,7 @@ impl CreateInvite { /// # } /// ``` pub fn unique(mut self, unique: bool) -> Self { - self.0.insert("unique".to_owned(), Value::Bool(unique)); + self.0.insert("unique".to_string(), Value::Bool(unique)); self } @@ -207,7 +207,7 @@ impl Default for CreateInvite { /// ``` fn default() -> CreateInvite { let mut map = Map::new(); - map.insert("validate".to_owned(), Value::Null); + map.insert("validate".to_string(), Value::Null); CreateInvite(map) } |