sbt / io

IO module for sbt
Apache License 2.0
41 stars 47 forks source link

use string interpolation instead of `+` method in `Char` #332

Closed xuwei-k closed 2 years ago

xuwei-k commented 2 years ago

fix warning in Scala 2.13

[warn] /home/runner/work/io/io/io/src/main/scala/sbt/io/IO.scala:1180:80: method + in class Char is deprecated (since 2.13.0): Adding a number and a String is deprecated. Use the string interpolation s"$num$str" [warn] if (name.nonEmpty && name.head != File.separatorChar) File.separatorChar + name [warn] ^