From 2a3a9f92d3df0b42100d6e93eb9d05b06254181b Mon Sep 17 00:00:00 2001 From: Gabriel Ciuloaica Date: Tue, 27 Jun 2023 19:29:12 +0300 Subject: [PATCH] fixed scal 3x compilation --- .../shared/src/main/scala/zio/schema/codec/AvroCodec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala b/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala index 0b6abf288..6caec830c 100644 --- a/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala +++ b/zio-schema-avro/shared/src/main/scala/zio/schema/codec/AvroCodec.scala @@ -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")) {