From e2e1e05542599a6a6089b86f00345c93fc1c2ffb Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sat, 5 Oct 2024 20:09:32 +0900 Subject: [PATCH] use Iterator instead of deprecated Stream --- sbt-pgp/src/main/scala/com/jsuereth/pgp/cli/Display.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbt-pgp/src/main/scala/com/jsuereth/pgp/cli/Display.scala b/sbt-pgp/src/main/scala/com/jsuereth/pgp/cli/Display.scala index 565888d..ec1ca1f 100644 --- a/sbt-pgp/src/main/scala/com/jsuereth/pgp/cli/Display.scala +++ b/sbt-pgp/src/main/scala/com/jsuereth/pgp/cli/Display.scala @@ -6,7 +6,7 @@ object Display { def printFileHeader(f: java.io.File) = { val path = f.getAbsolutePath - val line = Stream.continually('-').take(path.length).mkString("") + val line = Iterator.continually('-').take(path.length).mkString("") path + "\n" + line + "\n" }