We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2acf800 commit 161e38eCopy full SHA for 161e38e
src/utils.rs
@@ -42,7 +42,7 @@ pub(crate) fn get_tokio_runtime() -> &'static TokioRuntime {
42
#[inline]
43
pub(crate) fn get_global_ctx() -> &'static SessionContext {
44
static CTX: OnceLock<SessionContext> = OnceLock::new();
45
- CTX.get_or_init(|| SessionContext::new())
+ CTX.get_or_init(SessionContext::new)
46
}
47
48
/// Utility to collect rust futures with GIL released
0 commit comments