Skip to content

Commit

Permalink
Rename to
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
1 parent f5d873c commit 4796660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/nettlesome.EmailAddress.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object EmailAddress:
case LocalPart.Quoted(text) => '{LocalPart.Quoted(${Expr(text)})}
case LocalPart.Unquoted(text) => '{LocalPart.Unquoted(${Expr(text)})}

address.domain.asMatchable.runtimeChecked match
address.domain.asMatchable.absolve match
case ipv6: Ipv6 => '{EmailAddress(Unset, $localPart, ${Expr(ipv6)})}
case hostname: Hostname => '{EmailAddress(Unset, $localPart, ${Expr(hostname)})}
case ipv4: Int => '{EmailAddress(Unset, $localPart, Ipv4(${Expr(ipv4)}))}
Expand Down Expand Up @@ -134,7 +134,7 @@ case class EmailAddress
case LocalPart.Quoted(quoted) => t"\"$quoted\""
case LocalPart.Unquoted(unquoted) => unquoted

val remote = domain.runtimeChecked match
val remote = domain.absolve match
case host: Hostname => host.show
case ipv4: Ipv4 => ipv4.show
case ipv6: Ipv6 => ipv6.show
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 @@ -36,7 +36,7 @@ object UrlInterpolator extends contextual.Interpolator[UrlFragment, Text, Url[La

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

ConstantType(StringConstant(constant)).asType.runtimeChecked match
ConstantType(StringConstant(constant)).asType.absolve match
case '[type labelType <: Label; labelType] =>
'{${expand(context, parts)}.asInstanceOf[Url[labelType]]}

Expand Down

0 comments on commit 4796660

Please sign in to comment.