我目前正在使用一个宏(ZIO's @mockable
),其生成的代码导致编译错误,导致我的构建失败:
[error] /home/me/xxx/backend/<macro>:5:204: parameter value rts in anonymous function is never used
[error] val compose: _root_.zio.URLayer[_root_.zio.Has[_root_.zio.test.mock.Proxy], zio.Has[my.package.database.firestore.Firestore.Service]] = _root_.zio.ZLayer.fromServiceM(((proxy) => withRuntime.map(((rts) => {
[error] ^
[error] one error found
我怎样才能抑制这个警告?我试过添加"-Wconf:src=.*<macro>:silent"
(有和没有转义<
和>
)但没有运气。