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 Aug 22, 2023
1 parent 9c5e797 commit 2a3a9f9
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 2a3a9f9

Please sign in to comment.