Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add workaround to avoid never used param warnings in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
duartepinto committed Mar 7, 2024
1 parent ed2b59f commit 7b19264
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mock/shared/src/main/scala-2/zio/mock/MockableMacro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ private[mock] object MockableMacro {
_root_.zio.ZLayer.fromZIO(
_root_.zio.ZIO.service[_root_.zio.mock.Proxy].flatMap { proxy =>
withRuntime[_root_.zio.mock.Proxy, $service] { rts =>
rts.toString() // workaround to avoid 'parameter rts in anonymous function is never used' warnings
class $serviceClassName extends $service {
..$mocks
}
Expand Down

0 comments on commit 7b19264

Please sign in to comment.