Skip to content

Commit

Permalink
cargo fmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Feb 17, 2024
1 parent d4e31b9 commit 010cc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pid1/examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}

if args.len() > 1 {
let duration = &args[2];
let duration = duration.parse().expect("Expected int value");
let duration = &args[2];
let duration = duration.parse().expect("Expected int value");
println!("Going to sleep {duration} seconds");
std::thread::sleep(std::time::Duration::from_secs(duration));
}
Expand Down

0 comments on commit 010cc13

Please sign in to comment.