Skip to content

Commit

Permalink
Move StateMachine construction to outside closure (#97)
Browse files Browse the repository at this point in the history
* move state_machine

* add move

* whoops

* chk

* import
  • Loading branch information
ryescholin authored May 31, 2024
1 parent c0e5283 commit 13ef3f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pod-operation/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let lidar = Lidar::new();
tokio::spawn(demo::read_lidar(lidar));

tokio::spawn(async {
let mut state_machine = StateMachine::new(io);
let mut state_machine = StateMachine::new(io);
tokio::spawn(async move {
state_machine.run().await;
});

Expand Down

0 comments on commit 13ef3f6

Please sign in to comment.