Skip to content

Commit ac8a339

Browse files
Use AnyVal to avoid allocations
Co-authored-by: Arman Bilge <armanbilge@gmail.com>
1 parent cb545b9 commit ac8a339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/cats/mtl/Handle.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ object Handle extends HandleInstances with HandleVariant {
225225
def allowF[F[_], E]: AdHocSyntaxTired[F, E] =
226226
new AdHocSyntaxTired[F, E]
227227

228-
final class AdHocSyntaxTired[F[_], E] {
228+
final class AdHocSyntaxTired[F[_], E](private val unit: Unit) extends AnyVal {
229229

230230
def apply[A](body: Handle[F, E] => F[A])(implicit F: ApplicativeThrow[F]): Inner[A] =
231231
new Inner(body)

0 commit comments

Comments
 (0)