We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537203c commit 4c8a4f7Copy full SHA for 4c8a4f7
1 file changed
plugin/src/main/scala/org/scalafmt/sbt/ScalafmtPlugin.scala
@@ -137,8 +137,9 @@ object ScalafmtPlugin extends AutoPlugin {
137
updateConfiguration: lm.UpdateConfiguration,
138
) {
139
locally {
140
- def cmp[A: Ordering](x: Iterable[A], y: Iterable[A]): Int = Ordering
141
- .Iterable[A].compare(x, y)
+ import Ordering.Implicits.*
+ def cmp[A](x: Seq[A], y: Seq[A])(implicit ord: Ordering[Seq[A]]): Int =
142
+ ord.compare(x, y)
143
val curvn = VersionNumber(sbtVersion)
144
(curvn._1 match {
145
case Some(1) => Some("1.12.9")
0 commit comments