Skip to content

Commit

Permalink
feat: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ts0yu committed Feb 28, 2024
1 parent 9b45d1c commit 92dd9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/behaviors/pool_admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Behavior<Message> for PoolAdmin {
}

async fn process(&mut self, event: Message) -> Result<ControlFlow> {
let _query: PoolAdminQuery = match serde_json::from_str(&event.data) {
let query: PoolAdminQuery = match serde_json::from_str(&event.data) {
Ok(query) => query,
Err(_) => {
eprintln!("Failed to deserialize the event data into a PoolAdminQuery");
Expand Down Expand Up @@ -172,7 +172,7 @@ mod tests {
world.add_agent(pool_admin);
world.add_agent(deployer);

world.run().await.expect("world failed to run");
let _ = world.run().await.expect("world failed to run");

let env = world.environment;
let mut world = World::new("univ3");
Expand Down
2 changes: 1 addition & 1 deletion src/behaviors/price_changer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Behavior<Message> for PriceChanger {
async fn process(&mut self, event: Message) -> Result<ControlFlow> {
let ou = OrnsteinUhlenbeck::new(self.mu, self.sigma, self.theta);

let query: PriceUpdate = match serde_json::from_str(&event.data) {
let _query: PriceUpdate = match serde_json::from_str(&event.data) {
Ok(query) => query,
Err(_) => {
eprintln!("Failed to deserialize the event data into a PriceUpdate");
Expand Down

0 comments on commit 92dd9ed

Please sign in to comment.