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 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 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