Skip to content

Commit

Permalink
unchecked not nowarn
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 9, 2024
1 parent bb76d22 commit aed91d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package parsley.cats

import scala.annotation.nowarn
import scala.annotation.unchecked

import cats.data.NonEmptyList

Expand Down Expand Up @@ -160,7 +160,7 @@ object combinator {
* @since 1.2.0
*/
def sepEndBy1[A](p: Parsley[A], sep: =>Parsley[_]): Parsley[NonEmptyList[A]] = parsley.combinator.sepEndBy1(p, sep).map { xxs =>
val (x::xs) = xxs: @nowarn
val (x::xs) = xxs: @unchecked
NonEmptyList(x, xs)
}

Expand Down

0 comments on commit aed91d0

Please sign in to comment.