Skip to content

Commit 826ae87

Browse files
committed
Fix Scala 3 compile
1 parent 0924b9c commit 826ae87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crypto/js/src/main/scala/org/http4s/crypto/HmacKeyGenPlatform.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ private[crypto] trait HmacKeyGenCompanionPlatform {
3737
Some(F)
3838
.collect { case f: Async[F] => f }
3939
.fold {
40-
F.delay {
40+
F.delay[SecretKey[A]] {
4141
val key =
4242
crypto.generateKeySync("hmac", GenerateKeyOptions(algorithm.minimumKeyLength))
4343
SecretKeySpec(ByteVector.view(key.`export`()), algorithm)
4444
}
4545
} { F =>
46-
F.async_ { cb =>
46+
F.async_[SecretKey[A]] { cb =>
4747
crypto.generateKey(
4848
"hmac",
4949
GenerateKeyOptions(algorithm.minimumKeyLength),
@@ -55,7 +55,6 @@ private[crypto] trait HmacKeyGenCompanionPlatform {
5555
)
5656
}
5757
}
58-
.widen
5958

6059
}
6160
else

0 commit comments

Comments
 (0)