Permalink
Browse files

Fixed Xlint warning in benchmark project

  • Loading branch information...
mpilquist committed May 23, 2017
1 parent 764c67a commit 6934472ffd7fde0ed91ad0698cefeae757d2e675
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmark-macros/src/main/scala/fs2/macros.scala
@@ -24,9 +24,9 @@ final class GenerateNMacro(val c: whitebox.Context) {
case List(q"""$as def $name($nparam: Int): $ret = $body""") =>
ns.map { n =>
val tn = TermName(s"${name}_$n")
q"""$as def $tn: $ret = {
q"""$as def $tn(): $ret = {
val $nparam = $n
..$body }"""
..$body }"""
}
case t =>
c.abort(c.enclosingPosition, "unable to generate benchmark")

0 comments on commit 6934472

Please sign in to comment.