From c4480ba932016ac8bfe5850d91a6facf7bd52c70 Mon Sep 17 00:00:00 2001 From: Yann Simon Date: Sun, 10 Sep 2023 19:06:47 +0200 Subject: [PATCH] fix warning --- src/main/scala-3/sangria/visitor/VisitMacro.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala-3/sangria/visitor/VisitMacro.scala b/src/main/scala-3/sangria/visitor/VisitMacro.scala index 3618d8a..eb0d179 100644 --- a/src/main/scala-3/sangria/visitor/VisitMacro.scala +++ b/src/main/scala-3/sangria/visitor/VisitMacro.scala @@ -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 {