Skip to content

Commit

Permalink
fixed scal 3x compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
devsprint committed Jun 27, 2023
1 parent f7832dd commit c034558
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ object AvroCodec {

private def decodeEnum[Z](raw: Any, cases: Schema.Case[Z, _]*): Either[DecodeError, Any] =
raw match {
case enum: GenericData.EnumSymbol =>
decodeGenericEnum(enum.toString, None, cases: _*)
case enums: GenericData.EnumSymbol =>
decodeGenericEnum(enums.toString, None, cases: _*)
case gr: GenericData.Record =>
val enumCaseName = gr.getSchema.getFullName
if (gr.hasField("value")) {
Expand Down

0 comments on commit c034558

Please sign in to comment.