diff --git a/rerun_py/src/python_bridge.rs b/rerun_py/src/python_bridge.rs index 568c986bece2..2acbee5d8f87 100644 --- a/rerun_py/src/python_bridge.rs +++ b/rerun_py/src/python_bridge.rs @@ -301,7 +301,7 @@ fn connect(addr: Option) -> PyResult<()> { Ok(()) } -#[must_use] +#[must_use = "the tokio_runtime guard must be kept alive while using tokio"] fn enter_tokio_runtime() -> tokio::runtime::EnterGuard<'static> { use once_cell::sync::Lazy; static TOKIO_RUNTIME: Lazy =