diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..dd24dde --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.11.0 +35c718b0be5e1993a829a86e5270e822ae97f274 diff --git a/.scalafmt.conf b/.scalafmt.conf index 50e3533..1e00b69 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.7.17 +version = 3.11.0 runner.dialect = scala3 runner.dialectOverride.allowSignificantIndentation = false diff --git a/core/src/main/scala/respectfully/API.scala b/core/src/main/scala/respectfully/API.scala index 3321f68..86d1289 100644 --- a/core/src/main/scala/respectfully/API.scala +++ b/core/src/main/scala/respectfully/API.scala @@ -110,8 +110,8 @@ object API { '{ Endpoint[Any, Any]( ${ Expr(meth.name) }, - ${ inputCodec }.asInstanceOf[Codec[Any]], - ${ outputCodec }.asInstanceOf[Codec[Any]], + $inputCodec.asInstanceOf[Codec[Any]], + $outputCodec.asInstanceOf[Codec[Any]], ) } } @@ -172,7 +172,7 @@ object API { val fromFunction: Expr[AsFunction => Alg] = '{ asf => ${ proxy[Alg]('asf).asExprOf[Alg] } } - '{ API.instance[Alg](${ Expr.ofList(endpoints) }, ${ asFunction }, ${ fromFunction }) } + '{ API.instance[Alg](${ Expr.ofList(endpoints) }, $asFunction, $fromFunction) } } private inline def combineCodecs( @@ -257,10 +257,10 @@ object API { val body: List[DefDef] = cls.declaredMethods.map { sym => def impl(argss: List[List[Tree]]) = { argss match { - case Nil :: Nil => '{ ${ asf }.apply(${ Expr(sym.name) }, Nil) } - case _ => + case Nil :: Nil => '{ $asf.apply(${ Expr(sym.name) }, Nil) } + case _ => '{ - ${ asf }.apply( + $asf.apply( endpointName = ${ Expr(sym.name) }, in = ${