From faed18f80b84efb488d04d495ed9e1b44123eb54 Mon Sep 17 00:00:00 2001 From: Michael Nedokushev Date: Sun, 10 Dec 2023 14:02:14 +0000 Subject: [PATCH] Fix unused Tag[A] warning --- .../zio/apache/parquet/core/hadoop/ParquetReader.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala index 7d56a51..023d785 100644 --- a/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala +++ b/modules/core/src/main/scala/me/mnedokushev/zio/apache/parquet/core/hadoop/ParquetReader.scala @@ -9,6 +9,8 @@ import org.apache.parquet.io.InputFile import zio._ import zio.stream._ +import scala.annotation.nowarn + trait ParquetReader[A <: Product] { def read(path: Path): ZStream[Scope, Throwable, A] @@ -48,9 +50,9 @@ object ParquetReader { } - def configured[A <: Product: ValueDecoder: Tag]( + def configured[A <: Product: ValueDecoder]( hadoopConf: Configuration = new Configuration() - ): ULayer[ParquetReader[A]] = + )(implicit @nowarn tag: Tag[A]): ULayer[ParquetReader[A]] = ZLayer.succeed(new ParquetReaderLive[A](hadoopConf)) }