diff --git a/std/shared/src/main/scala/cats/effect/std/Hotswap.scala b/std/shared/src/main/scala/cats/effect/std/Hotswap.scala index 51c81f52bc..454744b4ba 100644 --- a/std/shared/src/main/scala/cats/effect/std/Hotswap.scala +++ b/std/shared/src/main/scala/cats/effect/std/Hotswap.scala @@ -136,7 +136,7 @@ object Hotswap { case (r, fin) => exclusive.mapK(poll).onCancel(Resource.eval(fin)).surround { swapFinalizer(Acquired(r, fin)).as(r) - }) + } } } diff --git a/tests/shared/src/test/scala/cats/effect/std/HotswapSpec.scala b/tests/shared/src/test/scala/cats/effect/std/HotswapSpec.scala index b7c1130392..e78041a967 100644 --- a/tests/shared/src/test/scala/cats/effect/std/HotswapSpec.scala +++ b/tests/shared/src/test/scala/cats/effect/std/HotswapSpec.scala @@ -140,7 +140,8 @@ class HotswapSpec extends BaseSpec { outer => Hotswap[IO, Unit](Resource.unit) .use { case (hs, _) => - hs.swap(Resource.make(open.set(true))(_ => open.getAndSet(false).map(_ should beTrue).void)) + hs.swap(Resource.make(open.set(true))(_ => + open.getAndSet(false).map(_ should beTrue).void)) } .race(IO.unit) *> open.get.map(_ must beFalse) }