Skip to content

Commit

Permalink
descriptive must_use
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Apr 13, 2023
1 parent 33ea1a9 commit 31237fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rerun_py/src/python_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ fn connect(addr: Option<String>) -> 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<tokio::runtime::Runtime> =
Expand Down

0 comments on commit 31237fe

Please sign in to comment.