Skip to content

Commit

Permalink
Merge pull request #203 from sangria-graphql/fix_warnings
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
yanns authored Sep 10, 2023
2 parents e382357 + c4480ba commit c4ac81f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala-3/sangria/visitor/VisitMacro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class VisitMacro(using val globalQuotes: Quotes) {
val clsTypeRepr = TypeIdent(cls).tpe
val fieldMembers = findKnownMembers(cls, specials)
val (knownMembers: Seq[KnownMember], defaultFields: Seq[DefaultField]) =
fieldMembers.partition {
case _: KnownMember => true
case _: MemberField => false
fieldMembers.partitionMap {
case m: KnownMember => Left(m)
case m: DefaultField => Right(m)
}

clsTypeRepr.asType match {
Expand Down

0 comments on commit c4ac81f

Please sign in to comment.