From 0c3e5b1565d5a152438b436882ac6ae2a6ac9bef Mon Sep 17 00:00:00 2001 From: AngelicosPhosphoros Date: Thu, 19 Sep 2024 01:11:23 +0200 Subject: [PATCH] Fixed tokio error in hot reload example `#[tokio::main]` macro refused to compile because it uses multithreaded runtime by default but the example disabled multithreading. --- examples/examples/hot_reloading.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/examples/hot_reloading.rs b/examples/examples/hot_reloading.rs index b41dc5b74..6deefebcf 100644 --- a/examples/examples/hot_reloading.rs +++ b/examples/examples/hot_reloading.rs @@ -8,7 +8,7 @@ use std::sync::Arc; use anyhow::{Context as _, Result}; use rune::{Context, Vm}; -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() -> Result<()> { let root = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").context("missing CARGO_MANIFEST_DIR")?);