Use given instead of implicit val (#8870)

This commit is contained in:
kenji yoshida 2026-03-04 13:17:28 +09:00 committed by GitHub
parent cf9d3d5a7a
commit 4ba457d5d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ object LockedArtifactsRun {
verbosityLevel: Int,
log: Logger
): Either[String, Seq[(Dependency, Publication, Artifact, Option[File])]] = {
implicit val ec: ExecutionContext = cache.ec
given ExecutionContext = cache.ec
if (verbosityLevel >= 1) {
log.info("Fetching artifacts from lock file")

View File

@ -18,7 +18,7 @@ object SftpRepoSpec extends BaseIvySpecification {
def module(org: String) = org % "some-lib" % "version"
override def resolvers = {
implicit val patterns = Resolver.defaultIvyPatterns
given Patterns = Resolver.defaultIvyPatterns
repo.map { repo =>
val privateKeyFile = Paths.get(sys.env("HOME"), ".ssh", s"id_${repo}").toFile
Resolver.sftp(repo, s"repo.${repo}.com", 2222).as(repo, privateKeyFile)

View File

@ -24,7 +24,7 @@ object DagSpecification extends Properties("Dag") {
dependenciesPrecedeNodes(dag.topologicalSort)
}
implicit lazy val arbTestDag: Arbitrary[TestDag] = Arbitrary(Gen.sized(dagGen))
given Arbitrary[TestDag] = Arbitrary(Gen.sized(dagGen))
private def dagGen(nodeCount: Int): Gen[TestDag] = {
val nodes = new HashSet[TestDag]
def nonterminalGen(p: Gen.Parameters): Gen[TestDag] = {