diff --git a/build.sbt b/build.sbt index 16095cc..b9a5a1b 100644 --- a/build.sbt +++ b/build.sbt @@ -31,7 +31,7 @@ val scalameterVersion = "0.19" val scalatestVersion = "3.2.17" val scalatestPlusVersion = "3.2.17.0" -scalaVersion := "2.12.18" +scalaVersion := "2.13.12" scalacOptions ++= Seq( "-target:jvm-1.8", "-deprecation", diff --git a/src/main/scala/com/spotify/bdrc/scala/Collections.scala b/src/main/scala/com/spotify/bdrc/scala/Collections.scala index 68b27d0..8f9c707 100644 --- a/src/main/scala/com/spotify/bdrc/scala/Collections.scala +++ b/src/main/scala/com/spotify/bdrc/scala/Collections.scala @@ -64,7 +64,7 @@ object Collections { b.result() // Use implicits to automatically build for the target collection type Map[String, Int] - val m: Map[String, Int] = l.map(x => "key" + x -> x)(scala.collection.breakOut) + val m: Map[String, Int] = l.iterator.map(x => "key" + x -> x).toMap } }