Skip to content

Commit

Permalink
Merge pull request #242 from softwaremill/update/scalafmt-core-3.8.3
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.8.3
  • Loading branch information
KacperFKorban authored Sep 3, 2024
2 parents ae3407e + 3c03fc5 commit f95faf5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Scala Steward: Reformat with scalafmt 3.7.17
f3e9d962fa8ceb0db3cec08bac9e4d05635f0908

# Scala Steward: Reformat with scalafmt 3.8.3
3f51dc7447fca7c4a49087ff4255387e31ad3b0d
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.17
version = 3.8.3
maxColumn = 120
runner.dialect = scala3
fileOverride {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import scala.annotation.compileTimeOnly

private[quicklens] trait LowPriorityImplicits {

/**
* `QuicklensEach` is in `LowPriorityImplicits` to not conflict with the `QuicklensMapAtFunctor` on `each` calls.
*/
/** `QuicklensEach` is in `LowPriorityImplicits` to not conflict with the `QuicklensMapAtFunctor` on `each` calls.
*/
implicit class QuicklensEach[F[_], T](t: F[T])(implicit f: QuicklensFunctor[F, T]) {
@compileTimeOnly(canOnlyBeUsedInsideModify("each"))
def each: T = sys.error("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ object QuicklensMacros {
def symbolMethodByNameOrError(sym: Symbol, name: String): Symbol = {
sym.methodMember(name) match
case List(m) => m
case Nil => symbolAccessorByNameOrError(sym, name)
case _ => report.errorAndAbort(multipleMatchingMethods(sym.name, name))
case Nil => symbolAccessorByNameOrError(sym, name)
case _ => report.errorAndAbort(multipleMatchingMethods(sym.name, name))
}

def termMethodByNameUnsafe(term: Term, name: String): Symbol = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ExplicitCopyTest extends AnyFlatSpec with Matchers {
object Vec {
def apply(x: Double, y: Double): Vec = new Vec(V(x, y)) {}
}

val vec = Vec(1, 2)
val modified = vec.modify(_.x).using(_ + 1)
val expected = Vec(2, 2)
Expand Down

0 comments on commit f95faf5

Please sign in to comment.