From 010cc133eb4922e55861bcc7c2b16e7629bec67d Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Sat, 17 Feb 2024 20:04:48 +0530 Subject: [PATCH] cargo fmt fixes --- pid1/examples/simple.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pid1/examples/simple.rs b/pid1/examples/simple.rs index 9724cdf..db7cdbb 100644 --- a/pid1/examples/simple.rs +++ b/pid1/examples/simple.rs @@ -18,8 +18,8 @@ fn main() -> Result<(), Box> { } 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)); }