Skip to content

Commit

Permalink
Update scala-library to 2.13.12 (#153)
Browse files Browse the repository at this point in the history
* Update scala-library to 2.13.12

* Fix warns.

* Update selenium-java.

* Upgrade ci actions.
  • Loading branch information
zhongl authored Nov 27, 2023
1 parent be49553 commit 442133d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v13
- uses: actions/checkout@v2
- uses: coursier/setup-action@v1
- name: branch-names
id: branch-name
uses: tj-actions/branch-names@v2.2
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ lazy val root = (project in file(".")).settings(
url("https://github.com/zhongl")
)
),
scalaVersion := "2.13.8",
scalaVersion := "2.13.12",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalafmtOnCompile := true,
scalacOptions += "-deprecation",
scalacOptions += "-Wunused",
resolvers += "Artima Maven Repository" at "https://repo.artima.com/releases",
libraryDependencies ++= Seq(
"org.seleniumhq.selenium" % "selenium-java" % "4.13.0",
"org.seleniumhq.selenium" % "selenium-java" % "4.15.0",
"com.lihaoyi" % "ammonite" % "2.5.11" cross CrossVersion.full,
"org.typelevel" %% "cats-free" % "2.10.0",
"org.scalatest" %% "scalatest-wordspec" % "3.2.17" % Test,
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/webot/as.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ trait As[A] {
object As {
def apply[A](implicit ins: As[A]): As[A] = ins

implicit val asBoolean = new As[Boolean] {
implicit val asBoolean: As[Boolean] = new As[Boolean] {
def from(value: String) = value.toBoolean
}
implicit val asByte = new As[Byte] {
implicit val asByte: As[Byte] = new As[Byte] {
def from(value: String) = value.toByte
}
implicit val asInt = new As[Int] {
implicit val asInt: As[Int] = new As[Int] {
def from(value: String) = value.toInt
}
implicit val asDouble = new As[Double] {
implicit val asDouble: As[Double] = new As[Double] {
def from(value: String) = value.toDouble
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/webot/element.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object Element {
def apply[A](op: Operator[A]): ControlOr[A] = instance.apply(self).apply(op)
}

implicit def asElementOps[A](a: A)(implicit e: Element[A]) = new Ops[A] {
implicit def asElementOps[A](a: A)(implicit e: Element[A]): Ops[A] = new Ops[A] {
val self = a
val instance = e
}
Expand Down

0 comments on commit 442133d

Please sign in to comment.