Skip to content

Commit

Permalink
fix: Consistently use serializers from the module
Browse files Browse the repository at this point in the history
This is a fixup for 45a455c.
  • Loading branch information
sschuberth committed Oct 30, 2024
1 parent 9bee143 commit 36dc6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/com/charleskorn/kaml/Yaml.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Yaml(
}

public inline fun <reified T> decodeFromYamlNode(node: YamlNode): T =
decodeFromYamlNode(serializer<T>(), node)
decodeFromYamlNode(serializersModule.serializer<T>(), node)

public fun <T> decodeFromYamlNode(
deserializer: DeserializationStrategy<T>,
Expand Down

0 comments on commit 36dc6af

Please sign in to comment.