Skip to content

Commit

Permalink
Started using
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
1 parent 28fe62c commit 9d7e1b1
Showing 1 changed file with 2 additions and 2 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: @unchecked) match
address.domain.asMatchable.runtimeChecked 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: @unchecked) match
val remote = domain.runtimeChecked match
case host: Hostname => host.show
case ipv4: Ipv4 => ipv4.show
case ipv6: Ipv6 => ipv6.show
Expand Down

0 comments on commit 9d7e1b1

Please sign in to comment.