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