Skip to content

Commit 18c59d8

Browse files
author
Jaden Peterson
committed
Revert "Suppress deprecation warning"
This reverts commit b33b462.
1 parent 3632171 commit 18c59d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

macros/src/main/scala/enumeratum/compat/EnumMacros.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package compat
33

44
import ContextUtils.Context
55

6-
import scala.annotation.nowarn
76
import scala.collection.immutable._
87
import scala.util.control.NonFatal
98

@@ -107,7 +106,7 @@ object EnumMacros {
107106
import c.universe._
108107
val enclosingBodySubClassTrees: List[Tree] =
109108
try {
110-
val enclosingModule = (c.enclosingClass: @nowarn) match {
109+
val enclosingModule = c.enclosingClass match {
111110
case md @ ModuleDef(_, _, _) => md
112111
case _ =>
113112
c.abort(

0 commit comments

Comments
 (0)