enable fatal warnings

This commit is contained in:
Mark Canlas 2022-02-14 17:56:55 -05:00
parent 5dc8d894fa
commit 985532c92e
4 changed files with 7 additions and 6 deletions

View File

@ -10,13 +10,13 @@ package com.htmlism.nescant
case class ReadWriteLocation[A](name: String, address: ZeroPageAddress)
object ReadWriteLocation {
implicit def sourceForReadWriteLocation[A: Operand]: ByteSource[ReadWriteLocation[A]] =
implicit def sourceForReadWriteLocation[A]: ByteSource[ReadWriteLocation[A]] =
new ByteSource[ReadWriteLocation[A]] {}
implicit def sinkForReadWriteLocation[A: Operand]: ByteSink[ReadWriteLocation[A]] =
implicit def sinkForReadWriteLocation[A]: ByteSink[ReadWriteLocation[A]] =
new ByteSink[ReadWriteLocation[A]] {}
implicit def operandForReadWriteLocation[A: Operand]: Operand[ReadWriteLocation[A]] =
implicit def operandForReadWriteLocation[A]: Operand[ReadWriteLocation[A]] =
new Operand[ReadWriteLocation[A]] {
def encode(x: ReadWriteLocation[A]): String = ""
}

View File

@ -14,10 +14,10 @@ package com.htmlism.nescant
case class VolatileDevice[A](name: String, address: ZeroPageAddress)
object VolatileDevice {
implicit def sourceForVolatileDevice[A: Operand]: ByteSource[VolatileDevice[A]] =
implicit def sourceForVolatileDevice[A]: ByteSource[VolatileDevice[A]] =
new ByteSource[VolatileDevice[A]] {}
implicit def operandForVolatileDevice[A: Operand]: Operand[VolatileDevice[A]] =
implicit def operandForVolatileDevice[A]: Operand[VolatileDevice[A]] =
new Operand[VolatileDevice[A]] {
def encode(x: VolatileDevice[A]): String = ""
}

View File

@ -10,7 +10,7 @@ package object dsl {
}
implicit class SinkOps[A: ByteSink](x: A) {
def write[B: ByteSource](src: B): Unit = {
def write[B](src: B): Unit = {
val _ = src
}
}

View File

@ -1,4 +1,5 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.4.17")