From 71fbc4c55b1c22f174ed2f13d1a5f83f0b22ce8f Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 7 Oct 2023 12:31:05 -0500 Subject: [PATCH] Just have different mains --- src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6b671af..770fec8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,5 @@ -fn main() -> color_eyre::Result<()> { - run() -} - #[cfg(feature = "io-uring")] -fn run() -> color_eyre::Result<()> { +fn main() -> color_eyre::Result<()> { tokio_uring::start(async move { pict_rs::PictRsConfiguration::build_default()? .install_tracing()? @@ -14,7 +10,7 @@ fn run() -> color_eyre::Result<()> { } #[cfg(not(feature = "io-uring"))] -fn run() -> color_eyre::Result<()> { +fn main() -> color_eyre::Result<()> { tokio::runtime::Builder::new_multi_thread() .enable_all() .build()?