Skip to content

Commit e58569b

Browse files
author
Jaden Peterson
committed
Use .view where appropriate
1 parent 2269602 commit e58569b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/higherkindness/rules_scala/workers/zinc/compile/ZincRunner.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {
209209

210210
val compileOptions =
211211
CompileOptions.create
212-
.withSources(sources.map(source => PlainVirtualFile(source.toAbsolutePath().normalize())).toArray)
213-
.withClasspath((classesOutputDir +: deps.map(_.classpath)).map(path => PlainVirtualFile(path)).toArray)
212+
.withSources(sources.view.map(source => PlainVirtualFile(source.toAbsolutePath().normalize())).toArray)
213+
.withClasspath((classesOutputDir +: deps.view.map(_.classpath)).map(path => PlainVirtualFile(path)).toArray)
214214
.withClassesDirectory(classesOutputDir)
215215
.withJavacOptions(workRequest.javaCompilerOptions)
216216
.withScalacOptions(
@@ -333,7 +333,7 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {
333333
deps.filter(Dep.used(deps, resultAnalysis.relations, lookup)).filterNot { dep =>
334334
val filteredDepFileName = FileUtil.getNameWithoutRulesJvmExternalStampPrefix(dep.file)
335335

336-
scalaInstance.libraryJars
336+
scalaInstance.libraryJars.view
337337
.map(FileUtil.getNameWithoutRulesJvmExternalStampPrefix)
338338
.contains(filteredDepFileName)
339339
}

0 commit comments

Comments
 (0)