Skip to content

Commit 487ac15

Browse files
committed
Fix test compilation errors
1 parent e80bc74 commit 487ac15

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/scala/com/typesafe/sbt/web/incremental/IncrementalSpec.scala

+6-6
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class IncrementalSpec extends Specification {
269269
IO.write(file2, "x")
270270

271271
var hashPrefix = ""
272-
implicit val hasher = OpInputHasher[String](op => OpInputHash.hashString(hashPrefix + op))
272+
implicit val hasher: OpInputHasher[String] = OpInputHasher[String](op => OpInputHash.hashString(hashPrefix + op))
273273

274274
// Cache ops with an initial hash prefix
275275

@@ -580,7 +580,7 @@ class IncrementalSpec extends Specification {
580580
IO.write(file2, "x")
581581

582582
var hashPrefix = ""
583-
implicit val hasher = OpInputHasher[String](op => OpInputHash.hashString(hashPrefix + op))
583+
implicit val hasher: OpInputHasher[String] = OpInputHasher[String](op => OpInputHash.hashString(hashPrefix + op))
584584

585585
// Cache ops with an initial hash prefix
586586

@@ -641,7 +641,7 @@ class IncrementalSpec extends Specification {
641641
"op1" -> OpSuccess(Set.empty, Set(file1)),
642642
"op2" -> OpSuccess(Set.empty, Set(file2))
643643
),
644-
Unit
644+
()
645645
)
646646
}
647647
val (outputFiles, _) = syncIncremental(tmpDir, List("op1")) { prunedOps =>
@@ -673,7 +673,7 @@ class IncrementalSpec extends Specification {
673673
Map[String, OpResult](
674674
"op1" -> OpSuccess(Set(infile), Set(file1, file2))
675675
),
676-
Unit
676+
()
677677
)
678678
}
679679

@@ -709,7 +709,7 @@ class IncrementalSpec extends Specification {
709709
"op1" -> OpSuccess(Set(infile), Set(file1)),
710710
"op2" -> OpSuccess(Set.empty, Set(file2))
711711
),
712-
Unit
712+
()
713713
)
714714
}
715715

@@ -721,7 +721,7 @@ class IncrementalSpec extends Specification {
721721
"op1" -> OpSuccess(Set(infile), Set.empty),
722722
"op3" -> OpSuccess(Set.empty, Set(file1, file2))
723723
),
724-
Unit
724+
()
725725
)
726726
}
727727

0 commit comments

Comments
 (0)