From da70f080f0f42523ee096454827a4f373941c578 Mon Sep 17 00:00:00 2001 From: 47erbot Date: Mon, 13 Jan 2025 06:26:34 +0100 Subject: [PATCH] Update scalafmt-core to 3.8.4 --- .git-blame-ignore-revs | 2 ++ .scalafmt.conf | 2 +- fetch-examples/src/test/scala/JedisExample.scala | 4 ++-- fetch/src/test/scala/FetchTests.scala | 3 +-- 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..7cde424b --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.4 +31437ca5e9dbc9d31fd10190094a2d341d625c6d diff --git a/.scalafmt.conf b/.scalafmt.conf index fac685e6..454ca2ab 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.3 +version = 3.8.4 style = defaultWithAlign maxColumn = 100 diff --git a/fetch-examples/src/test/scala/JedisExample.scala b/fetch-examples/src/test/scala/JedisExample.scala index c07d2880..6a389fdb 100644 --- a/fetch-examples/src/test/scala/JedisExample.scala +++ b/fetch-examples/src/test/scala/JedisExample.scala @@ -133,11 +133,11 @@ case class RedisCache[F[_]: Sync](host: String) extends DataCache[F] { private def bulkSet(ivs: List[(Array[Byte], Array[Byte])]): F[Unit] = connection.use(c => - Sync[F].delay({ + Sync[F].delay { val pipe = c.pipelined ivs.foreach(i => pipe.set(i._1, i._2)) pipe.sync - }) + } ) private def cacheId[I, A](i: I, data: Data[I, A]): Array[Byte] = diff --git a/fetch/src/test/scala/FetchTests.scala b/fetch/src/test/scala/FetchTests.scala index 989276ef..dcbed965 100644 --- a/fetch/src/test/scala/FetchTests.scala +++ b/fetch/src/test/scala/FetchTests.scala @@ -35,9 +35,8 @@ class FetchTests extends FetchSpec { Fetch.run[IO](fetch).map(_ shouldEqual 42).unsafeToFuture() } - "We can lift values which have a Data Source to Fetch" in { + "We can lift values which have a Data Source to Fetch" in Fetch.run[IO](one(1)).map(_ shouldEqual 1).unsafeToFuture() - } "We can map over Fetch values" in { def fetch[F[_]: Concurrent]: Fetch[F, (Int)] =