Skip to content

Commit

Permalink
Changes to whitespace in signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
1 parent 4796660 commit 8a0d7fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/nettlesome-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extension [RemoteType: Connectable](value: RemoteType)
extension [PortType](port: PortType)
def serve[ProtocolType: Protocolic over PortType]
(handler: ProtocolType.Request ?=> ProtocolType.Response)
: ProtocolType.Server =
: ProtocolType.Server =
ProtocolType.server(port)(handler)

def internet[ResultType](online: Boolean)(block: Internet ?=> ResultType): ResultType =
Expand Down
2 changes: 1 addition & 1 deletion src/core/nettlesome.Nettlesome.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ object Nettlesome:
recur(groups)

def apply(byte0: Byte, byte1: Byte, byte2: Byte, byte3: Byte, byte4: Byte, byte5: Byte)
: MacAddress =
: MacAddress =

def recur(todo: List[Byte], done: Long): Long = todo match
case head :: tail => recur(tail, (done << 8) + head)
Expand Down
4 changes: 2 additions & 2 deletions src/url/nettlesome.Url.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case class Url[+SchemeType <: Label]
(scheme: Scheme[SchemeType],
authority: Optional[Authority],
pathText: Text,
query: Optional[Text] = Unset,
query: Optional[Text] = Unset,
fragment: Optional[Text] = Unset)
extends Root(t"${scheme.name}://${authority.lay(t"")(_.show)}$pathText", t"/", Case.Sensitive):
type Platform = HttpUrl
Expand Down Expand Up @@ -128,7 +128,7 @@ object Url:
def serialize(url: Url[SchemeType]): Text = url.show

def parse[SchemeType <: Label](value: Text)(using Tactic[UrlError], Tactic[HostnameError])
: Url[SchemeType] =
: Url[SchemeType] =
import UrlError.Expectation.*

safely(value.where(_ == ':')).asMatchable match
Expand Down
2 changes: 1 addition & 1 deletion src/url/nettlesome.UrlInterpolator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import errorDiagnostics.empty
object UrlInterpolator extends contextual.Interpolator[UrlFragment, Text, Url[Label]]:

def refined(context: Expr[StringContext], parts: Expr[Seq[Any]])(using Quotes)
: Expr[Url[Label]] =
: Expr[Url[Label]] =
import quotes.reflect.*

val constant = context.value.get.parts.head.split(":").nn.head.nn
Expand Down

0 comments on commit 8a0d7fd

Please sign in to comment.