Skip to content

Commit 3a72a4f

Browse files
authored
Merge pull request #2938 from armanbilge/fix/hide-chunk-runtime-platform
Hide chunk runtime platform traits
2 parents f2d3cc0 + fb98cbe commit 3a72a4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/js/src/main/scala/fs2/ChunkRuntimePlatform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import scala.scalajs.js.typedarray.TypedArrayBuffer
2626
import scala.scalajs.js.typedarray.Uint8Array
2727
import scala.scalajs.js.typedarray.TypedArrayBufferOps._
2828

29-
trait ChunkRuntimePlatform[+O] { self: Chunk[O] =>
29+
private[fs2] trait ChunkRuntimePlatform[+O] { self: Chunk[O] =>
3030

3131
def toJSArrayBuffer[B >: O](implicit ev: B =:= Byte): ArrayBuffer = {
3232
val bb = toByteBuffer[B]
@@ -46,7 +46,7 @@ trait ChunkRuntimePlatform[+O] { self: Chunk[O] =>
4646

4747
}
4848

49-
trait ChunkCompanionRuntimePlatform { self: Chunk.type =>
49+
private[fs2] trait ChunkCompanionRuntimePlatform { self: Chunk.type =>
5050

5151
def jsArrayBuffer(buffer: ArrayBuffer): Chunk[Byte] =
5252
byteBuffer(TypedArrayBuffer.wrap(buffer))

core/jvm/src/main/scala/fs2/ChunkRuntimePlatform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
package fs2
2323

24-
trait ChunkRuntimePlatform[+O]
24+
private[fs2] trait ChunkRuntimePlatform[+O]
2525

26-
trait ChunkCompanionRuntimePlatform
26+
private[fs2] trait ChunkCompanionRuntimePlatform

0 commit comments

Comments
 (0)