aboutsummaryrefslogtreecommitdiff
path: root/src/model/gateway.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:46:37 -0700
commit0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch)
tree03dd981bc04ba8475333d057705820c3320e3a97 /src/model/gateway.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz
serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip
`to_owned` -> `to_string`
Diffstat (limited to 'src/model/gateway.rs')
-rw-r--r--src/model/gateway.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 4edf0b8..4edc20e 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -60,7 +60,7 @@ impl Game {
pub fn playing(name: &str) -> Game {
Game {
kind: GameType::Playing,
- name: name.to_owned(),
+ name: name.to_string(),
url: None,
}
}
@@ -91,8 +91,8 @@ impl Game {
pub fn streaming(name: &str, url: &str) -> Game {
Game {
kind: GameType::Streaming,
- name: name.to_owned(),
- url: Some(url.to_owned()),
+ name: name.to_string(),
+ url: Some(url.to_string()),
}
}
}