Skip to content

Commit

Permalink
Fix the examples to unwrap the error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyDev committed Jan 18, 2025
1 parent 921529c commit 6cec07c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/src/3d/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fn game_tick(
},

},
);
).unwrap();

// update blackboard
let db = bt.get_blackboard();
Expand Down
2 changes: 1 addition & 1 deletion examples/src/async_drone/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async fn drone_tick(
}
},
}
);
).unwrap();
}

#[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion examples/src/boids/boid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,5 @@ pub fn game_tick(dt: f32, cursor: mint::Point2<f32>, boid: &mut Boid, other_boid
},
}

});
}).unwrap();
}
2 changes: 1 addition & 1 deletion examples/src/simple_npc_ai/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn game_tick(bt: &mut BT<EnemyNPC, BlackBoardData>, state: &mut EnemyNPCState) -
(Success, 0.0)
}
}
});
}).unwrap();

// return status:
status.0
Expand Down

0 comments on commit 6cec07c

Please sign in to comment.