Skip to content

Commit

Permalink
Merge pull request #93 from ThorstenHans/fix/tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneidereit authored Dec 20, 2023
2 parents e76b2d3 + 79777b3 commit ad982cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions component-model/examples/tutorial/command/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cargo_component_bindings::generate!();
use clap::Parser;
use std::{fmt, thread::sleep};
use std::{fmt};

use bindings::docs::calculator::{calculate, calculate::Op};

Expand Down Expand Up @@ -37,8 +37,6 @@ impl Command {
fn run(self) {
let res = calculate::eval_expression(self.op, self.x, self.y);
println!("{} {} {} = {res}", self.x, self.op, self.y);
// Sleep because bug
sleep(std::time::Duration::from_millis(10))
}
}

Expand Down

0 comments on commit ad982cb

Please sign in to comment.