Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Jun 1, 2024
1 parent 23ff8a2 commit ffd284b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- scala: 2.13.14
name: Scala2_13
test-tasks: coverage test coverageReport gen-doc
- scala: 3.3.1
- scala: 3.3.3
name: Scala3_3
test-tasks: coverage test coverageReport

Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/xml/cursor/AttrCursor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ final class AttrCursor(protected val vCursor: NodeCursor, op: AttrCursor.Op)

// eq
override def equals(obj: Any): Boolean =
obj.isInstanceOf[AttrCursor]
&& Eq[AttrCursor].eqv(this, obj.asInstanceOf[AttrCursor])
obj.isInstanceOf[AttrCursor] &&
Eq[AttrCursor].eqv(this, obj.asInstanceOf[AttrCursor])
}
object AttrCursor {

Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/xml/cursor/NodeCursor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ sealed trait NodeCursor

// eq
override final def equals(obj: Any): Boolean =
obj.isInstanceOf[NodeCursor]
&& Eq[NodeCursor].eqv(this, obj.asInstanceOf[NodeCursor])
obj.isInstanceOf[NodeCursor] &&
Eq[NodeCursor].eqv(this, obj.asInstanceOf[NodeCursor])
}

object NodeCursor {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/xml/cursor/TextCursor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ final class TextCursor(protected[xml] val lastCursor: NodeCursor)

// eq
override def equals(obj: Any): Boolean =
obj.isInstanceOf[TextCursor]
&& Eq[TextCursor].eqv(this, obj.asInstanceOf[TextCursor])
obj.isInstanceOf[TextCursor] &&
Eq[TextCursor].eqv(this, obj.asInstanceOf[TextCursor])
}
object TextCursor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ object TypeInfoInstances {

def isOptionOfAnyPrimitiveOrString(tpe: c.universe.Type): Boolean = {
val typeArgs = tpe.typeArgs
tpe <:< typeOf[Option[?]]
&& typeArgs.nonEmpty
&& (
typeArgs.exists(isPrimitive) ||
typeArgs.exists(isPrimitiveWrapper) ||
typeArgs.exists(isString)
)
tpe <:< typeOf[Option[?]] &&
typeArgs.nonEmpty &&
(typeArgs.exists(isPrimitive) ||
typeArgs.exists(isPrimitiveWrapper) ||
typeArgs.exists(isString))
}

// value class
Expand Down

0 comments on commit ffd284b

Please sign in to comment.