Skip to content

Commit

Permalink
Updated to Fabric 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Sep 21, 2022
1 parent a72148b commit 24de612
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ val scala2 = List(scala213)
val allScalaVersions = scala2 ::: scala3

ThisBuild / organization := "com.outr"
ThisBuild / version := "3.4.2"
ThisBuild / version := "3.4.3-SNAPSHOT"
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")

Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/profig/PlatformPickler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import fabric.rw._
import scala.language.implicitConversions

trait PlatformPickler {
implicit val fileReadWriter: ReaderWriter[File] = ReaderWriter[File](f => str(f.getAbsolutePath), v => new File(v.asStr.value))
implicit val fileReadWriter: RW[File] = RW[File](f => str(f.getAbsolutePath), v => new File(v.asStr.value))

implicit def path2JSON(path: Path): Json = file2JSON(path.toFile)
implicit def file2JSON(file: File): Json = source2Json(Source.fromFile(file), Some(file.getName))
Expand Down
4 changes: 2 additions & 2 deletions core/jvm/src/test/scala/spec/Special.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import java.io.File
case class Special(title: String, location: File)

object Special {
implicit def fileRW: ReaderWriter[File] = profig.fileReadWriter
implicit def rw: ReaderWriter[Special] = ccRW
implicit def fileRW: RW[File] = profig.fileReadWriter
implicit def rw: RW[Special] = ccRW
}

0 comments on commit 24de612

Please sign in to comment.