From 36dc6af1470107eb2bf465aece494f446cb46920 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 30 Oct 2024 10:31:39 +0100 Subject: [PATCH] fix: Consistently use serializers from the module This is a fixup for 45a455c400cef16868070da7c0ac283dba08ebbe. --- src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt b/src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt index 66f322c0..39996a65 100644 --- a/src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt +++ b/src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt @@ -42,7 +42,7 @@ public class Yaml( } public inline fun decodeFromYamlNode(node: YamlNode): T = - decodeFromYamlNode(serializer(), node) + decodeFromYamlNode(serializersModule.serializer(), node) public fun decodeFromYamlNode( deserializer: DeserializationStrategy,