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/invite.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/model/invite.rs')
| -rw-r--r-- | src/model/invite.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/model/invite.rs b/src/model/invite.rs index ba7521a..b4f326c 100644 --- a/src/model/invite.rs +++ b/src/model/invite.rs @@ -126,16 +126,16 @@ impl Invite { /// # let invite = Invite { /// # approximate_member_count: Some(1812), /// # approximate_presence_count: Some(717), - /// # code: "WxZumR".to_owned(), + /// # code: "WxZumR".to_string(), /// # channel: InviteChannel { /// # id: ChannelId(1), - /// # name: "foo".to_owned(), + /// # name: "foo".to_string(), /// # kind: ChannelType::Text, /// # }, /// # guild: InviteGuild { /// # id: GuildId(2), /// # icon: None, - /// # name: "bar".to_owned(), + /// # name: "bar".to_string(), /// # splash_hash: None, /// # text_channel_count: Some(7), /// # voice_channel_count: Some(3), @@ -290,17 +290,17 @@ impl RichInvite { /// # use serenity::model::*; /// # /// # let invite = RichInvite { - /// # code: "WxZumR".to_owned(), + /// # code: "WxZumR".to_string(), /// # channel: InviteChannel { /// # id: ChannelId(1), - /// # name: "foo".to_owned(), + /// # name: "foo".to_string(), /// # kind: ChannelType::Text, /// # }, /// # created_at: "2017-01-29T15:35:17.136000+00:00".parse().unwrap(), /// # guild: InviteGuild { /// # id: GuildId(2), /// # icon: None, - /// # name: "baz".to_owned(), + /// # name: "baz".to_string(), /// # splash_hash: None, /// # text_channel_count: None, /// # voice_channel_count: None, @@ -310,7 +310,7 @@ impl RichInvite { /// # bot: false, /// # discriminator: 3, /// # id: UserId(4), - /// # name: "qux".to_owned(), + /// # name: "qux".to_string(), /// # }, /// # max_age: 5, /// # max_uses: 6, |