refactor: Inline StringResource.wrap() function
This commit is contained in:
parent
ac4796a233
commit
2f9d88685a
@ -16,7 +16,8 @@ sealed interface TextHolder {
|
||||
) : TextHolder
|
||||
}
|
||||
|
||||
fun StringResource.wrap() = TextHolder.Res(this)
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
inline fun StringResource.wrap() = TextHolder.Res(this)
|
||||
|
||||
@Composable
|
||||
fun textResource(text: TextHolder): String = when (text) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user