Skip to content

Commit

Permalink
unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 9, 2024
1 parent a90597f commit 90703ab
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import parsley.Parsley, Parsley.{notFollowedBy, many}
import parsley.combinator.{manyTill}
import parsley.lift.lift2

import org.typelevel.scalaccompat.annotation.nowarn

/** This module contains pre-made combinators that are very useful for a variety of purposes, specialised to `cats`.
*
* In particular, it contains functionality found normally in `parsley.combinator`, but returning the `cats` `NonEmptyList`
Expand Down Expand Up @@ -160,7 +158,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 90703ab

Please sign in to comment.