From 1124126e4dab02f9c42b66803a17f8e5fa3590b5 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 8 Mar 2024 16:28:53 +0000 Subject: [PATCH 1/2] Update scala-library to 2.13.13 in series/3.x --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 1900059d2..cc05cc273 100644 --- a/build.sbt +++ b/build.sbt @@ -20,7 +20,7 @@ val munitVersion = "0.7.29" val scala212 = "2.12.18" -val scala213 = "2.13.12" +val scala213 = "2.13.13" val scala3 = "3.3.1" From 886d7238303b860194f1f26a6c503e0de62615da Mon Sep 17 00:00:00 2001 From: "a.artigao" Date: Mon, 18 Mar 2024 16:34:29 +0100 Subject: [PATCH 2/2] Fix `-Xlint:pattern-shadow` warning --- .../core/src/main/scala/fs2/kafka/HeaderDeserializer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/main/scala/fs2/kafka/HeaderDeserializer.scala b/modules/core/src/main/scala/fs2/kafka/HeaderDeserializer.scala index dd144da7a..e6cc5dc64 100644 --- a/modules/core/src/main/scala/fs2/kafka/HeaderDeserializer.scala +++ b/modules/core/src/main/scala/fs2/kafka/HeaderDeserializer.scala @@ -193,8 +193,8 @@ object HeaderDeserializer { HeaderDeserializer.instance { bytes => @tailrec def go(deserializer: HeaderDeserializer[Either[A, B]]): B = deserializer.deserialize(bytes) match { - case Right(b) => b - case Left(a) => go(f(a)) + case Right(_b) => _b + case Left(_a) => go(f(_a)) } go(f(a))