aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/model/gateway.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 9af4a7e..989cff8 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -133,13 +133,21 @@ impl Game {
impl<'a> From<&'a str> for Game {
fn from(name: &'a str) -> Self {
- Game::playing(name)
+ Game {
+ kind: GameType::Playing,
+ name: name.to_owned(),
+ url: None,
+ }
}
}
impl From<String> for Game {
fn from(name: String) -> Self {
- Game::playing(&name)
+ Game {
+ kind: GameType::Playing,
+ url: None,
+ name,
+ }
}
}