Skip to content

Commit

Permalink
Fix unused Tag[A] warning
Browse files Browse the repository at this point in the history
  • Loading branch information
grouzen committed Dec 10, 2023
1 parent 732db65 commit faed18f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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))

}

0 comments on commit faed18f

Please sign in to comment.