Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Feb 3, 2024
1 parent 90e9076 commit eea7221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ trait LongBsonValueEnum[EntryType <: LongEnumEntry] extends BsonValueEnum[Long,
trait StringBsonValueEnum[EntryType <: StringEnumEntry] extends BsonValueEnum[String, EntryType] {
this: StringEnum[EntryType] =>

implicit override def bsonEncoder: BsonEncoder[EntryType] = EnumHandler.writer(this)
implicit override def bsonDecoder: BsonDecoder[EntryType] = EnumHandler.reader(this)
implicit def bsonKeyEncoder: BsonKeyEncoder[EntryType] = (t: EntryType) => t.value
implicit def bsonKeyDecoder: BsonKeyDecoder[EntryType] = (value: String) => Try(withValue(value))
implicit override def bsonEncoder: BsonEncoder[EntryType] = EnumHandler.writer(this)
implicit override def bsonDecoder: BsonDecoder[EntryType] = EnumHandler.reader(this)
implicit def bsonKeyEncoder: BsonKeyEncoder[EntryType] = (t: EntryType) => t.value
implicit def bsonKeyDecoder: BsonKeyDecoder[EntryType] = (value: String) => Try(withValue(value))
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ final case class UniversalHandlerRegistry0(method: ServerMethodDefinition[?, ?])
method
}

final case class UniversalHandlerRegistry(handler: ServerCallHandler[Array[Byte], Array[Byte]]) extends HandlerRegistry {
final case class UniversalHandlerRegistry(handler: ServerCallHandler[Array[Byte], Array[Byte]])
extends HandlerRegistry {

override def lookupMethod(methodName: String, authority: String): ServerMethodDefinition[Array[Byte], Array[Byte]] = {
val methodNameArray = methodName.split("/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ object PredicateConstructionError {
}

final case class XPathError(xpath: String, error: String) extends PredicateConstructionError
final case class SpecificationError(xpath: String, errors: NonEmptyList[(Keyword, Json)]) extends PredicateConstructionError
final case class SpecificationError(xpath: String, errors: NonEmptyList[(Keyword, Json)])
extends PredicateConstructionError

final case class JSpecificationError(optic: JsonOptic, errors: NonEmptyList[(Keyword, Json)])
extends PredicateConstructionError

0 comments on commit eea7221

Please sign in to comment.