Skip to content

Commit

Permalink
fix warnings. use inject instead of project
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 25, 2024
1 parent 85c9675 commit 03f6b58
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ sealed abstract class ScalapropsShapelessInstances {
} else {
i.abs % inst.is.length
}
val (x, y) = inst.project[Rand](index)(r2) {
[t] =>
(r3: Rand, g: Gen[t]) => {
val (r4, a) = g.f(size, r3)
(r4, Option(a))
}
inst.inject[(Rand, A)](index) {
[t <: A] => (g: Gen[t]) => g.f(size, r2)
}
(x, y.get)
)

}
Expand Down

0 comments on commit 03f6b58

Please sign in to comment.