Skip to content

Commit

Permalink
changed annotation to unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 29, 2024
1 parent a3d28ad commit 94dd54f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/
package parsley.errors

import scala.annotation.nowarn

import parsley.Parsley

import parsley.internal.deepembedding.{frontend, singletons}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 94dd54f

Please sign in to comment.