Skip to content

Commit

Permalink
Rename decodeAs to decode
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 6, 2024
1 parent 0eb7d5c commit b992faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/xmlreader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object XmlDecoder extends Derivation[XmlDecoder]:

given [ValueType](using decoder: Decoder[ValueType]): XmlDecoder[ValueType] = value =>
(value: @unchecked) match
case XmlAst.Element(_, XmlAst.Textual(text) :: _, _, _) +: _ => text.decodeAs[ValueType]
case XmlAst.Element(_, XmlAst.Textual(text) :: _, _, _) +: _ => text.decode[ValueType]

inline def join[DerivationType <: Product: ProductReflection]: XmlDecoder[DerivationType] = list =>
val elements = childElements(list)
Expand Down

0 comments on commit b992faf

Please sign in to comment.