Skip to content

Commit 9865a5b

Browse files
authored
Merge branch 'main' into update/sbt-typelevel-0.8.3
2 parents bbbfc91 + 70bd42c commit 9865a5b

File tree

21 files changed

+47
-56
lines changed

21 files changed

+47
-56
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.9.9"
1+
version = "3.9.10"
22

33
style = default
44

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ ThisBuild / organization := "co.fs2"
88
ThisBuild / organizationName := "Functional Streams for Scala"
99
ThisBuild / startYear := Some(2013)
1010

11-
val Scala213 = "2.13.16"
11+
val Scala213 = "2.13.18"
1212

1313
ThisBuild / scalaVersion := Scala213
14-
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.6")
14+
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.7")
1515
ThisBuild / tlVersionIntroduced := Map("3" -> "3.0.3")
1616

1717
ThisBuild / githubWorkflowOSes := Seq("ubuntu-latest")
@@ -450,7 +450,7 @@ lazy val io = crossProject(JVMPlatform, JSPlatform, NativePlatform)
450450
.jvmSettings(
451451
Test / fork := true,
452452
libraryDependencies ++= Seq(
453-
"com.github.jnr" % "jnr-unixsocket" % "0.38.23" % Optional,
453+
"com.github.jnr" % "jnr-unixsocket" % "0.38.24" % Optional,
454454
"com.google.jimfs" % "jimfs" % "1.3.1" % Test
455455
)
456456
)

core/shared/src/main/scala-3/fs2/ChunkPlatform.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ package fs2
2424
import scodec.bits.ByteVector
2525

2626
import scala.collection.immutable.ArraySeq
27-
import scala.collection.immutable
2827
import scala.reflect.ClassTag
2928

3029
private[fs2] trait ChunkPlatform[+O] extends Chunk213And3Compat[O] {

core/shared/src/main/scala/fs2/Chunk.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,7 @@ object Chunk
14591459

14601460
/** `Traverse`, `Monad`, `Alternative`, and `TraverseFilter` instance for `Chunk`.
14611461
*/
1462+
@nowarn213("msg=parameterless")
14621463
implicit val instance
14631464
: Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk] =
14641465
new Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk] {

core/shared/src/main/scala/fs2/Stream.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,6 +3816,7 @@ object Stream extends StreamLowPriority {
38163816
* are dequeued and emitted as a single chunk.
38173817
*/
38183818
@nowarn("msg=never used")
3819+
@nowarn3("msg=unused implicit parameter")
38193820
def fromQueueNoneTerminated[F[_]: Functor, A](
38203821
queue: QueueSource[F, Option[A]],
38213822
limit: Int = Int.MaxValue

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/src/test/scala/fs2/MemoryLeakSpec.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,11 @@ class MemoryLeakSpec extends FunSuite {
218218

219219
leakTest("constant eval") {
220220
var cnt = 0
221-
var start = System.currentTimeMillis
222221
Stream
223222
.constant(())
224223
.flatMap { _ =>
225224
Stream.eval(IO {
226225
cnt = (cnt + 1) % 1000000
227-
if (cnt == 0) {
228-
val now = System.currentTimeMillis
229-
start = now
230-
}
231226
})
232227
}
233228
}

io/js/src/main/scala/fs2/io/internal/facade/net.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private[io] object net {
8282
@js.native
8383
class Socket extends fs2.io.Duplex {
8484

85-
def this(options: SocketOptions) = this()
85+
def this(@unused options: SocketOptions) = this()
8686

8787
def connect(path: String, connectListener: js.Function0[Unit]): Socket = js.native
8888

io/js/src/main/scala/fs2/io/internal/facade/tls.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private[io] object tls {
183183
@js.native
184184
class TLSSocket extends Socket {
185185

186-
def this(socket: fs2.io.Duplex, options: TLSSocketOptions) = this()
186+
def this(@unused socket: fs2.io.Duplex, @unused options: TLSSocketOptions) = this()
187187

188188
def alpnProtocol: String | Boolean = js.native
189189

io/js/src/main/scala/fs2/io/ioplatform.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ import fs2.io.internal.facade
3232

3333
import java.nio.charset.Charset
3434
import java.nio.charset.StandardCharsets
35-
import scala.annotation.nowarn
3635
import scala.scalajs.js
3736
import scala.scalajs.js.typedarray.Uint8Array
3837

38+
import org.typelevel.scalaccompat.annotation._
39+
3940
private[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

Comments
 (0)