Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Aug 29, 2024
1 parent 19d37b9 commit 3afd6d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scalasql/core/src/TypeMapper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ trait TypeMapper[T] { outer =>
}

object TypeMapper {
def apply[T](implicit t: TypeMapper[T]): TypeMapper[T] = t

/**
* These definitions are workarounds for a bug in the Scala 3 compiler
Expand Down
1 change: 1 addition & 0 deletions scalasql/src/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ package object scalasql {
type Expr[T] = core.Expr[T]

type TypeMapper[T] = core.TypeMapper[T]
val TypeMapper = core.TypeMapper

val Config = core.Config
type Config = core.Config
Expand Down
2 changes: 1 addition & 1 deletion scalasql/test/src/WorldSqlTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ object WorldSqlTests extends TestSuite {
case class CityId2(value: Int)

object CityId2 {
implicit def tm: TypeMapper[CityId2] = implicitly[TypeMapper[Int]].bimap[CityId2](
implicit def tm: TypeMapper[CityId2] = TypeMapper[Int].bimap[CityId2](
city => city.value,
int => CityId2(int)
)
Expand Down

0 comments on commit 3afd6d6

Please sign in to comment.