From b2b87d72a277bdf44e3b827d5b931911e569e2d7 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 1 Jul 2023 01:20:44 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.7.5 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index e9c517b7..b058c046 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,3 +1,3 @@ runner.dialect = scala3 -version = "3.7.4" +version = "3.7.5" maxColumn = 120 From b0719dbc23f841458ff8db757517e49df76e6708 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 1 Jul 2023 01:20:59 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.7.5 Executed command: scalafmt --non-interactive --- .../thoughtworks/binding/Binding2Or3.scala | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/Binding/shared/src/main/scala-3/com/thoughtworks/binding/Binding2Or3.scala b/Binding/shared/src/main/scala-3/com/thoughtworks/binding/Binding2Or3.scala index 10dde346..e66e7f67 100644 --- a/Binding/shared/src/main/scala-3/com/thoughtworks/binding/Binding2Or3.scala +++ b/Binding/shared/src/main/scala-3/com/thoughtworks/binding/Binding2Or3.scala @@ -129,7 +129,6 @@ private[binding] object Binding2Or3: object BindingSeqOrWithFilter: extension [A](inline bindingSeqOrWithFilter: BindingSeqOrWithFilter[A]) - /** Returns a [[BindingSeq]] that maps each element of this [[BindingSeq]] via `f` * * @param f @@ -137,23 +136,23 @@ private[binding] object Binding2Or3: */ inline def map[B](inline f: A => B): BindingSeq[B] = ${ Macros.map('bindingSeqOrWithFilter, 'f) } - /** Returns a [[BindingSeq]] that flat-maps each element of this [[BindingSeq]] via `f` - * - * @param f - * The mapper function, which may contain magic [[Binding#bind bind]] calls. - */ - inline def flatMap[B](inline f: A => BindingSeq[B]): BindingSeq[B] = ${ - Macros.flatMap('bindingSeqOrWithFilter, 'f) - } - - /** Returns a view of this [[BindingSeq]] that applied a filter of `condition` - * - * @param f - * The mapper function, which may contain magic [[Binding#bind bind]] calls. - */ - inline def withFilter(inline condition: A => Boolean): BindingSeq.WithFilter[A] = ${ - Macros.withFilter('bindingSeqOrWithFilter, 'condition) - } + /** Returns a [[BindingSeq]] that flat-maps each element of this [[BindingSeq]] via `f` + * + * @param f + * The mapper function, which may contain magic [[Binding#bind bind]] calls. + */ + inline def flatMap[B](inline f: A => BindingSeq[B]): BindingSeq[B] = ${ + Macros.flatMap('bindingSeqOrWithFilter, 'f) + } + + /** Returns a view of this [[BindingSeq]] that applied a filter of `condition` + * + * @param f + * The mapper function, which may contain magic [[Binding#bind bind]] calls. + */ + inline def withFilter(inline condition: A => Boolean): BindingSeq.WithFilter[A] = ${ + Macros.withFilter('bindingSeqOrWithFilter, 'condition) + } end extension end BindingSeqOrWithFilter From c29bb69e512123e8e02b36bd5367e4505004d445 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 1 Jul 2023 01:20:59 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.7.5' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 66a7aaaa..9f15dc42 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -6,3 +6,6 @@ fb6cfb8aea15a1b339e3ed69e1e96acd7df4cae6 # Scala Steward: Reformat with scalafmt 3.7.3 9949b27715a382afd78b992ced481ace61cc69b7 + +# Scala Steward: Reformat with scalafmt 3.7.5 +b0719dbc23f841458ff8db757517e49df76e6708