From 94dd54fbe4fe4629a422f6aa9680a64de8ee9e07 Mon Sep 17 00:00:00 2001 From: Jamie Willis Date: Mon, 29 Jan 2024 23:19:07 +0000 Subject: [PATCH] changed annotation to unchecked --- parsley/shared/src/main/scala/parsley/errors/combinator.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parsley/shared/src/main/scala/parsley/errors/combinator.scala b/parsley/shared/src/main/scala/parsley/errors/combinator.scala index f586c0e3f..947ce34d2 100644 --- a/parsley/shared/src/main/scala/parsley/errors/combinator.scala +++ b/parsley/shared/src/main/scala/parsley/errors/combinator.scala @@ -5,8 +5,6 @@ */ package parsley.errors -import scala.annotation.nowarn - import parsley.Parsley import parsley.internal.deepembedding.{frontend, singletons} @@ -536,7 +534,7 @@ object combinator { def mapFilterMsg[B](f: A => Either[Seq[String], B]): Parsley[B] = { this.mapFilterWith(new SpecializedGen[A] { override def messages(x: A) = { - val Left(errs) = f(x): @nowarn + val Left(errs) = f(x): @unchecked errs } })(x => f(x).toOption)