refactor: Inline StringResource.wrap() function

This commit is contained in:
Artem Chepurnoy 2024-12-10 17:04:25 +02:00
parent ac4796a233
commit 2f9d88685a
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E

View File

@ -16,7 +16,8 @@ sealed interface TextHolder {
) : TextHolder ) : TextHolder
} }
fun StringResource.wrap() = TextHolder.Res(this) @Suppress("NOTHING_TO_INLINE")
inline fun StringResource.wrap() = TextHolder.Res(this)
@Composable @Composable
fun textResource(text: TextHolder): String = when (text) { fun textResource(text: TextHolder): String = when (text) {