diff options
Diffstat (limited to 'src/model/gateway.rs')
| -rw-r--r-- | src/model/gateway.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs index 29dd7ce..5fdfdfe 100644 --- a/src/model/gateway.rs +++ b/src/model/gateway.rs @@ -762,20 +762,20 @@ impl Event { impl Game { #[cfg(feature="methods")] - pub fn playing(name: String) -> Game { + pub fn playing(name: &str) -> Game { Game { kind: GameType::Playing, - name: name, + name: name.to_owned(), url: None, } } #[cfg(feature="methods")] - pub fn streaming(name: String, url: String) -> Game { + pub fn streaming(name: &str, url: &str) -> Game { Game { kind: GameType::Streaming, - name: name, - url: Some(url), + name: name.to_owned(), + url: Some(url.to_owned()), } } |