Skip to content

Commit 731e692

Browse files
committed
Make sure to use the hash caching LCS implementations
1 parent 5437d1d commit 731e692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/diffson/jsonpatch/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ package object jsonpatch {
2323
object lcsdiff {
2424
object remembering {
2525
implicit def JsonDiffDiff[Json: Jsony: Lcs]: Diff[Json, JsonPatch[Json]] =
26-
new JsonDiff[Json](true, true)
26+
new JsonDiff[Json](true, true)(implicitly, implicitly[Lcs[Json]].savedHashes)
2727
}
2828
implicit def JsonDiffDiff[Json: Jsony: Lcs]: Diff[Json, JsonPatch[Json]] =
29-
new JsonDiff[Json](true, false)
29+
new JsonDiff[Json](true, false)(implicitly, implicitly[Lcs[Json]].savedHashes)
3030
}
3131

3232
object simplediff {

0 commit comments

Comments
 (0)