Skip to content

Commit

Permalink
Fix compilation for scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogdea committed Mar 12, 2020
1 parent 0a70c36 commit 23ba945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/org/nullvector/ReactiveMongoDriver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ class ReactiveMongoDriver(system: ExtendedActorSystem) extends Extension {
}
}

private def index(key: Seq[(String, IndexType)], name: Some[String], unique: Boolean = false, sparse: Boolean = false): Aux[BSONSerializationPack.type] = {
import scala.language.existentials

private def index(key: Seq[(String, IndexType)], name: Some[String], unique: Boolean = false, sparse: Boolean = false) = {
Index(BSONSerializationPack)(
key = key,
name = name,
Expand Down

0 comments on commit 23ba945

Please sign in to comment.