Skip to content

Commit

Permalink
Use Communicable instead of MessageShow
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 5, 2023
1 parent d9122c7 commit 093fbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/bin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object Rudiments:
def apply(long: Long): ByteSize = long
given GenericHttpRequestParam["content-length", ByteSize] = _.long.toString.tt
given Ordering[ByteSize] = Ordering.Long.on(_.long)
given MessageShow[ByteSize] = byteSize => Message(byteSize.text)
given Communicable[ByteSize] = byteSize => Message(byteSize.text)

given add: ClosedOperator["+", ByteSize] = _ + _
given subtract: ClosedOperator["-", ByteSize] = _ - _
Expand Down

0 comments on commit 093fbf3

Please sign in to comment.