Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scala3-library to 3.3.4 #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ organizationHomepage := Some(url("https://evolution.com"))

scalaVersion := crossScalaVersions.value.head

crossScalaVersions := Seq("2.13.14", "3.3.3")
crossScalaVersions := Seq("2.13.14", "3.3.4")

Compile / scalacOptions ++= {
if (scalaBinaryVersion.value == "2.13") {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/evolutiongaming/conhub/ConHub.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object ConHub {

def cons: Iterable[C] = conStates.values.values

//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
def consLocal: Iterable[C.Local] = cons.collect { case x: C.Local@unchecked => x }

def consRemote: Iterable[C.Remote] = cons.collect { case x: C.Remote => x }
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/com/evolutiongaming/conhub/ConStates.scala
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ object ConStates {
}

(ctx, c) match {
//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
case (Ctx.Local, _: C.Local@unchecked) => disconnect(local = true)
case (ctx: Ctx.Remote, c: C.Remote) if c.address == ctx.address => disconnect(local = false)
case _ => R.Ignore
Expand All @@ -131,7 +131,7 @@ object ConStates {
def remove(local: Boolean) = this.remove(id, version, local)

(ctx, c) match {
//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
case (Ctx.Local, _: C.Local@unchecked) => remove(local = true)
case (ctx: Ctx.Remote, c: C.Remote) if c.address == ctx.address => remove(local = false)
case (_, _: C.Disconnected) => remove(local = ctx == Ctx.Local)
Expand All @@ -141,7 +141,7 @@ object ConStates {
}

def sync(id: Id) = {
//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
updatePf(id, None, "sync") { case Some(c: C.Local@unchecked) =>
send.sync(id, c.value, c.version)
R.Ignore
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/com/evolutiongaming/conhub/SendMsgs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object SendMsgs {

def apply(msg: M, con: C.Connected): Unit = {
con match {
//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
case con: C.Local@unchecked => con.send(MsgAndRemote(msg))
case con: C.Remote => remote(Nel(msg), List(con.address))
}
Expand All @@ -34,7 +34,7 @@ object SendMsgs {
def local(msg: M, cons: Iterable[C], remote: Boolean): Unit = {
val msgAndRemote = MsgAndRemote(msg, remote)
for {con <- cons} con match {
//@unchecked needed to work around a Scala 3.3.3 compiler quirk with pattern matching
//@unchecked needed to work around a Scala 3.3.4 compiler quirk with pattern matching
case x: C.Local@unchecked => x.send(msgAndRemote)
case _ =>
}
Expand Down
Loading