diff options
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 059f23f..9514132 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use std::fs; use std::io::Write; use std::process::{self, Command, ExitCode}; use std::thread; +use std::time::Duration; use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; fn start() -> anyhow::Result<()> { @@ -74,6 +75,6 @@ fn main() -> ExitCode { } loop { - thread::yield_now(); + thread::sleep(Duration::MAX); } } |