Skip to content

Commit

Permalink
Merge pull request #9 from t2v/feature/fix_unnecessary_def
Browse files Browse the repository at this point in the history
Change def to val
  • Loading branch information
gakuzzzz authored Jan 23, 2017
2 parents 2c6b9ee + c4aedbe commit b85ea64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import scala.xml.NodeSeq

val commonSettings = Seq(
version := "5.0",
version := "5.1",
organization := "jp.t2v",
scalaVersion := "2.12.1",
crossScalaVersions := Seq("2.12.1"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ abstract class LocalDateConverter[A] {
}
object LocalDateConverter extends LowPriorityLocalDateConverter {
implicit val localDate: LocalDateConverter[LocalDate] = d => d
implicit def localDateTime: LocalDateConverter[LocalDateTime] = _.toLocalDate
implicit def zonedDateTime: LocalDateConverter[ZonedDateTime] = _.toLocalDate
implicit val localDateTime: LocalDateConverter[LocalDateTime] = _.toLocalDate
implicit val zonedDateTime: LocalDateConverter[ZonedDateTime] = _.toLocalDate
}

trait LowPriorityLocalDateConverter {
Expand Down

0 comments on commit b85ea64

Please sign in to comment.