Skip to content

Commit 161e38e

Browse files
committed
Small clippy suggestion
1 parent 2acf800 commit 161e38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub(crate) fn get_tokio_runtime() -> &'static TokioRuntime {
4242
#[inline]
4343
pub(crate) fn get_global_ctx() -> &'static SessionContext {
4444
static CTX: OnceLock<SessionContext> = OnceLock::new();
45-
CTX.get_or_init(|| SessionContext::new())
45+
CTX.get_or_init(SessionContext::new)
4646
}
4747

4848
/// Utility to collect rust futures with GIL released

0 commit comments

Comments
 (0)