@@ -32,10 +32,11 @@ import fs2.io.internal.facade
3232
3333import java .nio .charset .Charset
3434import java .nio .charset .StandardCharsets
35- import scala .annotation .nowarn
3635import scala .scalajs .js
3736import scala .scalajs .js .typedarray .Uint8Array
3837
38+ import org .typelevel .scalaccompat .annotation ._
39+
3940private [fs2] trait ioplatform {
4041
4142 @ deprecated(" Use suspendReadableAndRead instead" , " 3.1.4" )
@@ -423,8 +424,7 @@ private[fs2] trait ioplatform {
423424 /** Stream of bytes read asynchronously from standard input.
424425 * Takes a dummy `Int` parameter for source-compatibility with JVM.
425426 */
426- @ nowarn(" msg=never used" )
427- def stdin [F [_]: Async ](ignored : Int ): Stream [F , Byte ] = stdin
427+ def stdin [F [_]: Async ](@ unused ignored : Int ): Stream [F , Byte ] = stdin
428428
429429 /** Pipe of bytes that writes emitted values to standard output asynchronously. */
430430 def stdout [F [_]: Async ]: Pipe [F , Byte , Nothing ] = stdoutAsync
@@ -451,8 +451,7 @@ private[fs2] trait ioplatform {
451451 /** Stream of `String` read asynchronously from standard input decoded in UTF-8.
452452 * Takes a dummy `Int` parameter for source-compatibility with JVM.
453453 */
454- @ nowarn(" msg=never used" )
455- def stdinUtf8 [F [_]: Async ](ignored : Int ): Stream [F , String ] =
454+ def stdinUtf8 [F [_]: Async ](@ unused ignored : Int ): Stream [F , String ] =
456455 stdinAsync.through(text.utf8.decode)
457456
458457 // Copied JVM implementations, for bincompat
0 commit comments