From 80507faa3375bad28ee6d92b15771b7c84e67d97 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Mon, 18 Nov 2024 16:09:35 +0100 Subject: [PATCH] Remove @nowarn --- .../src/main/scala/scaladex/infra/ElasticsearchEngine.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/infra/src/main/scala/scaladex/infra/ElasticsearchEngine.scala b/modules/infra/src/main/scala/scaladex/infra/ElasticsearchEngine.scala index f31800ac2..360770312 100644 --- a/modules/infra/src/main/scala/scaladex/infra/ElasticsearchEngine.scala +++ b/modules/infra/src/main/scala/scaladex/infra/ElasticsearchEngine.scala @@ -2,7 +2,6 @@ package scaladex.infra import java.io.Closeable -import scala.annotation.nowarn import scala.concurrent.ExecutionContext import scala.concurrent.Future import scala.concurrent.duration._ @@ -271,7 +270,7 @@ class ElasticsearchEngine(esClient: ElasticClient, index: String)(implicit ec: E .toSeq .flatMap(_.hits) .flatMap { hit => - val source = SourceAsContentBuilder(hit.source).string: @nowarn("cat=deprecation") + val source = SourceAsContentBuilder(hit.source).string parser.decode[GithubIssue](source) match { case Right(issue) => Some(issue) case Left(_) =>