From f4bafed86ab9948dff95a8ed2d9c5426b5d975dd Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Thu, 19 Oct 2023 20:09:24 +0900 Subject: [PATCH] fix warning. add explicit type --- .../src/main/scala/scalapb/spark/TypedEncoders.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sparksql-scalapb/src/main/scala/scalapb/spark/TypedEncoders.scala b/sparksql-scalapb/src/main/scala/scalapb/spark/TypedEncoders.scala index 2308441..2ec0564 100644 --- a/sparksql-scalapb/src/main/scala/scalapb/spark/TypedEncoders.scala +++ b/sparksql-scalapb/src/main/scala/scalapb/spark/TypedEncoders.scala @@ -110,7 +110,8 @@ trait Implicits { ct: ClassTag[T] ): TypedEncoder[T] = new typedEncoders.EnumTypedEncoder[T] - implicit def byteStringTypedEncoder = typedEncoders.ByteStringTypedEncoder + implicit def byteStringTypedEncoder: TypedEncoder[ByteString] = + typedEncoders.ByteStringTypedEncoder implicit def typedEncoderToEncoder[T: ClassTag](implicit ev: TypedEncoder[T]