From 7d0a6eed90a2cf3d8152b3461c1ac2c7def424dd Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 17 Jul 2022 14:42:34 -0700 Subject: [PATCH] Apply quit::main to main function This makes `quit::with_code` actually work with the correct exit code. Fixes #111. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index be03b43..2886487 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,7 @@ mod troubleshooter; mod util; #[tokio::main] +#[quit::main] async fn main() { cli::run().await; }