Skip to content

Commit 3afd6d6

Browse files
committed
format
1 parent 19d37b9 commit 3afd6d6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

scalasql/core/src/TypeMapper.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ trait TypeMapper[T] { outer =>
6565
}
6666

6767
object TypeMapper {
68+
def apply[T](implicit t: TypeMapper[T]): TypeMapper[T] = t
6869

6970
/**
7071
* These definitions are workarounds for a bug in the Scala 3 compiler

scalasql/src/package.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ package object scalasql {
3636
type Expr[T] = core.Expr[T]
3737

3838
type TypeMapper[T] = core.TypeMapper[T]
39+
val TypeMapper = core.TypeMapper
3940

4041
val Config = core.Config
4142
type Config = core.Config

scalasql/test/src/WorldSqlTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ object WorldSqlTests extends TestSuite {
14521452
case class CityId2(value: Int)
14531453

14541454
object CityId2 {
1455-
implicit def tm: TypeMapper[CityId2] = implicitly[TypeMapper[Int]].bimap[CityId2](
1455+
implicit def tm: TypeMapper[CityId2] = TypeMapper[Int].bimap[CityId2](
14561456
city => city.value,
14571457
int => CityId2(int)
14581458
)

0 commit comments

Comments
 (0)