From 129cee26caa14c18ab9a11a0a9a846b06211fd40 Mon Sep 17 00:00:00 2001 From: Andrew Golovashevich Date: Fri, 5 Sep 2025 19:40:18 +0300 Subject: [PATCH] minor fix --- .../utility/closeable_state_1/children_scopes.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/utility/closeable_state_1/children_scopes.kt b/src/commonMain/kotlin/ru/landgrafhomyak/utility/closeable_state_1/children_scopes.kt index 2019f1f..9c92931 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/utility/closeable_state_1/children_scopes.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/utility/closeable_state_1/children_scopes.kt @@ -41,8 +41,8 @@ public inline fun CloseableState.childES( @OptIn(ManualStateManipulation::class) public inline fun CloseableState.ExternallySynchronized.closeableWrapper( - constructor: () -> CloseableState.ExternallySynchronized = ::ErrorOnConcurrentAccessState, - scope: (CloseableState.ExternallySynchronized) -> R, + crossinline constructor: () -> CloseableState.ExternallySynchronized = ::ErrorOnConcurrentAccessState, + noinline scope: (CloseableState.ExternallySynchronized) -> R, ): R { contract { callsInPlace(constructor, InvocationKind.EXACTLY_ONCE)