diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-01 22:14:23 +0200 |
| commit | 1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch) | |
| tree | ba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /tests/test_create_embed.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'tests/test_create_embed.rs')
| -rw-r--r-- | tests/test_create_embed.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_create_embed.rs b/tests/test_create_embed.rs index 3ef4e50..e20308e 100644 --- a/tests/test_create_embed.rs +++ b/tests/test_create_embed.rs @@ -15,32 +15,32 @@ fn test_from_embed() { let embed = Embed { author: None, colour: Colour::new(0xFF0011), - description: Some("This is a test description".to_owned()), + description: Some("This is a test description".to_string()), fields: vec![ EmbedField { inline: false, - name: "a".to_owned(), - value: "b".to_owned(), + name: "a".to_string(), + value: "b".to_string(), }, EmbedField { inline: true, - name: "c".to_owned(), - value: "z".to_owned(), + name: "c".to_string(), + value: "z".to_string(), }, ], footer: None, image: Some(EmbedImage { height: 213, - proxy_url: "a".to_owned(), - url: "https://i.imgur.com/XfWpfCV.gif".to_owned(), + proxy_url: "a".to_string(), + url: "https://i.imgur.com/XfWpfCV.gif".to_string(), width: 224, }), - kind: "rich".to_owned(), + kind: "rich".to_string(), provider: None, thumbnail: None, timestamp: None, - title: Some("hakase".to_owned()), - url: Some("https://i.imgur.com/XfWpfCV.gif".to_owned()), + title: Some("hakase".to_string()), + url: Some("https://i.imgur.com/XfWpfCV.gif".to_string()), video: None, }; |