DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

6d0ea7fb1612a15ad31efbe938785afa078e90bd — Jonni Liljamo 1 year, 9 months ago 7744859
fix(shared): my_games and all_forming take &String instead of String
2 files changed, 2 insertions(+), 2 deletions(-)

M shared/src/api/game/all_forming.rs
M shared/src/api/game/mygames.rs
M shared/src/api/game/all_forming.rs => shared/src/api/game/all_forming.rs +1 -1
@@ 20,7 20,7 @@ pub enum ResponseAllForming {
    Valid(ResultAllForming),
}

pub fn all_forming(api_address: String, cookie: &String) -> ResponseAllForming {
pub fn all_forming(api_address: &String, cookie: &String) -> ResponseAllForming {
    let client = reqwest::blocking::Client::new();

    let resp = client

M shared/src/api/game/mygames.rs => shared/src/api/game/mygames.rs +1 -1
@@ 20,7 20,7 @@ pub enum ResponseMyGames {
    Valid(ResultMyGames),
}

pub fn my_games(api_address: String, cookie: &String) -> ResponseMyGames {
pub fn my_games(api_address: &String, cookie: &String) -> ResponseMyGames {
    let client = reqwest::blocking::Client::new();

    let resp = client