From 6d0ea7fb1612a15ad31efbe938785afa078e90bd Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 17 Mar 2023 15:08:53 +0200 Subject: [PATCH] fix(shared): my_games and all_forming take &String instead of String --- shared/src/api/game/all_forming.rs | 2 +- shared/src/api/game/mygames.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/api/game/all_forming.rs b/shared/src/api/game/all_forming.rs index 415e84f..b724645 100644 --- a/shared/src/api/game/all_forming.rs +++ b/shared/src/api/game/all_forming.rs @@ -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 diff --git a/shared/src/api/game/mygames.rs b/shared/src/api/game/mygames.rs index b890920..8ba3a5e 100644 --- a/shared/src/api/game/mygames.rs +++ b/shared/src/api/game/mygames.rs @@ -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 -- 2.44.1