Skip to content

Commit

Permalink
Merge 37d64fe into be49553
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongl committed Nov 27, 2023
2 parents be49553 + 37d64fe commit 27d77b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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,
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 27d77b7

Please sign in to comment.