Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Baccata committed Apr 26, 2024
1 parent 0fe00e8 commit 19c23d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ lazy val tests = crossProject(JVMPlatform)
.enablePlugins(NoPublishPlugin)
.dependsOn(core)
.settings(
scalacOptions += "-language:implicitConversions",
libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.29" % Test,
"com.disneystreaming.smithy4s" %%% "smithy4s-dynamic" % "0.18.16" % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ object InterfaceMirror:
val decls = cls.declaredMethods.filterNot(encodesDefaultParameter)
val labels = decls.map(m => ConstantType(StringConstant(m.name)))

def isMeta(annot: Term): Boolean =
if annot.tpe <:< TypeRepr.of[MetaAnnotation] then true
else
report.info(s"annotation ${annot.show} does not extend ${Type.show[MetaAnnotation]}", annot.pos)
false
def isMeta(annot: Term): Boolean = annot.tpe <:< TypeRepr.of[MetaAnnotation]

def encodeMeta(annot: Term): Type[?] = AnnotatedType(TypeRepr.of[Meta], annot).asType

Expand Down

0 comments on commit 19c23d4

Please sign in to comment.