We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44837c8 commit e6fa052Copy full SHA for e6fa052
rust/src/mdl/mod.rs
@@ -7,9 +7,8 @@ use std::sync::LazyLock;
7
8
/// Shared tokio runtime for blocking on async isomdl functions (e.g. CRL checks)
9
/// at the UniFFI boundary, avoiding async propagation to foreign callers.
10
-static RUNTIME: LazyLock<tokio::runtime::Runtime> = LazyLock::new(|| {
11
- tokio::runtime::Runtime::new().expect("Failed to create tokio runtime")
12
-});
+static RUNTIME: LazyLock<tokio::runtime::Runtime> =
+ LazyLock::new(|| tokio::runtime::Runtime::new().expect("Failed to create tokio runtime"));
13
14
/// Run a future to completion, handling the case where we may already be
15
/// inside a tokio runtime (e.g. in tests). When called from outside a runtime
0 commit comments