aboutsummaryrefslogtreecommitdiff
path: root/src/name/dns_name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/name/dns_name.rs')
-rw-r--r--src/name/dns_name.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/name/dns_name.rs b/src/name/dns_name.rs
index e40e703..e4f18f2 100644
--- a/src/name/dns_name.rs
+++ b/src/name/dns_name.rs
@@ -125,7 +125,7 @@ impl<'a> DnsNameRef<'a> {
pub fn to_owned(&self) -> DnsName {
// DnsNameRef is already guaranteed to be valid ASCII, which is a
// subset of UTF-8.
- let s: &str = self.clone().into();
+ let s: &str = (*self).into();
DnsName(s.to_ascii_lowercase())
}
}