Skip to content

Commit

Permalink
typelevel#804 - encoding for Set derivatives as well - test build, 2.…
Browse files Browse the repository at this point in the history
…13 forced changes, compilation issue with toSeq():GenSeq
  • Loading branch information
chris-twiner committed Mar 20, 2024
1 parent 594fceb commit 5a01976
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dataset/src/main/scala/frameless/TypedEncoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,15 @@ object TypedEncoder {
implicit
ordering: Ordering[Y]
) = new CollectionConversion[Set, TreeSet, Y] {
override def convert(c: Set[Y]): TreeSet[Y] = TreeSet.newBuilder.++=(c).result()

override def convert(c: Set[Y]): TreeSet[Y] =
TreeSet.newBuilder.++=(c).result()
}

implicit def setToListSet[Y] = new CollectionConversion[Set, ListSet, Y] {
override def convert(c: Set[Y]): ListSet[Y] = ListSet.newBuilder.++=(c).result()

override def convert(c: Set[Y]): ListSet[Y] =
ListSet.newBuilder.++=(c).result()
}
}

Expand Down

0 comments on commit 5a01976

Please sign in to comment.