Skip to content

Commit 32a8bd0

Browse files
author
DogLooksGood
committed
Fix type usages
1 parent a15e721 commit 32a8bd0

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

test/src/client_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use race_core::{
1010
connection::ConnectionT,
1111
context::GameContext,
1212
secret::SecretState,
13-
types::{AttachGameParams, ClientMode, DecisionId, ExitGameParams, SubmitEventParams, DepositStatus},
13+
types::{AttachGameParams, ClientMode, ExitGameParams, SubmitEventParams, DepositStatus},
1414
};
1515
use race_encryptor::Encryptor;
1616
use tokio::sync::{mpsc, Mutex};
@@ -200,7 +200,7 @@ impl TestClient {
200200
}
201201
}
202202

203-
pub fn answer(&mut self, decision_id: DecisionId, answer: String) -> Result<Event> {
203+
pub fn answer(&mut self, decision_id: usize, answer: String) -> Result<Event> {
204204
self.client.answer_event(decision_id, answer)
205205
}
206206

test/src/handler_helpers.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::HashMap;
33

44
use race_api::engine::GameHandler;
55
use race_api::event::Event;
6-
use race_api::types::RandomId;
76
use race_core::context::{EventEffects, GameContext};
87
use race_core::engine::general_handle_event;
98
use race_core::error::Result;
@@ -23,7 +22,7 @@ where
2322
H: GameHandler,
2423
{
2524
handler: H,
26-
random_results: HashMap<RandomId, HashMap<usize, String>>,
25+
random_results: HashMap<usize, HashMap<usize, String>>,
2726
}
2827

2928
impl<H: GameHandler> TestHandler<H> {
@@ -59,7 +58,7 @@ impl<H: GameHandler> TestHandler<H> {
5958
Ok(event_effects)
6059
}
6160

62-
pub fn set_random_result(&mut self, random_id: RandomId, result: HashMap<usize, String>) {
61+
pub fn set_random_result(&mut self, random_id: usize, result: HashMap<usize, String>) {
6362
self.random_results.insert(random_id, result);
6463
}
6564

0 commit comments

Comments
 (0)