Skip to content

Commit ca2ddd6

Browse files
committed
[scala-3] Default implementation for type Writer[A] and Reader[A]
gets rid of compilation error branch: feature/scala-3.3.x
1 parent 6e239cb commit ca2ddd6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/api/SerializationPack.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import scala.util.Try
77
import scala.reflect.ClassTag
88

99
import reactivemongo.core.protocol.Response
10-
10+
import reactivemongo.api.bson.{ BSONDocumentReader, BSONDocumentWriter }
1111
import reactivemongo.api.bson.buffer.{ ReadableBuffer, WritableBuffer }
1212

1313
trait SerializationPack extends SerializationPackCompat { self: Singleton =>
1414
type Value
1515
type ElementProducer
1616
type Document <: Value
17-
type Writer[A]
18-
type Reader[A]
17+
type Writer[A] = BSONDocumentWriter[A]
18+
type Reader[A] = BSONDocumentReader[A]
1919
type NarrowValueReader[A]
2020
private[reactivemongo] type WidenValueReader[A]
2121

project/Common.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ object Common extends AutoPlugin {
5959

6060
lazy val scalaVersions: Seq[String] = {
6161
if (actorModule == "akka") Seq(scala211, scala212, scala213, scala31)
62-
else Seq(scala212, scala213)
62+
else Seq(scala212, scala213, scala31)
6363
}
6464

6565
override def projectSettings =

0 commit comments

Comments
 (0)