Skip to content

Commit 8f5b301

Browse files
xuwei-knrinaudo
authored andcommitted
fix generate code indent. prepare Scala 3
1 parent 7a52986 commit 8f5b301

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/shared/src/main/boilerplate/kantan/csv/GeneratedRowEncoders.scala.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ trait GeneratedRowEncoders {
108108
*
109109
* @param f encoding method, intended to be a case class' `unapply` method.
110110
* @param i1 index of the cell that should be passed as parameter number 1 of `f`#
111-
*/ def caseEncoder[C, A1: CellEncoder](f: C => Option[A1]): RowEncoder[C] =
111+
*/
112+
def caseEncoder[C, A1: CellEncoder](f: C => Option[A1]): RowEncoder[C] =
112113
encoder(f andThen (_.get))
113114

114115
[2..#/** Creates a new [[RowEncoder]] from the specified `unapply` method of a case class' companion object.

core/shared/src/main/boilerplate/kantan/csv/TupleInstances.scala.template

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trait TupleInstances {
2626
* res0: DecodeResult[Tuple1[[#Int#]]] = Right(([#1#,]))
2727
* }}}
2828
*/
29-
implicit def tupleRowDecoder1[[#A1: CellDecoder#]]: RowDecoder[Tuple1[[#A1#]]] =
29+
implicit def tupleRowDecoder1[[#A1: CellDecoder#]]: RowDecoder[Tuple1[[#A1#]]] =
3030
RowDecoder.ordered(Tuple1.apply[[#A1#]] _)#
3131

3232
]
@@ -49,7 +49,8 @@ trait TupleInstances {
4949
* scala> RowEncoder[Tuple1[[#Int#]]].encode(([#1#]))
5050
* res0: Seq[String] = Vector([#1#])
5151
* }}}
52-
*/implicit def tupleRowEncoder1[[#A1: CellEncoder#]]: RowEncoder[Tuple1[[#A1#]]] =
52+
*/
53+
implicit def tupleRowEncoder1[[#A1: CellEncoder#]]: RowEncoder[Tuple1[[#A1#]]] =
5354
RowEncoder.ordered((t: Tuple1[[#A1#]]) => t)#
5455

5556
]

0 commit comments

Comments
 (0)