Skip to content

Commit

Permalink
NFC: Address Clippy clone_on_copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Aug 30, 2023
1 parent 33294ce commit 8bf84f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mk/clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ cargo clippy \
\
--deny clippy::as_conversions \
\
--allow clippy::clone_on_copy \
--allow clippy::explicit_auto_deref \
--allow clippy::too_many_arguments \
$NULL
2 changes: 1 addition & 1 deletion src/name/dns_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down

0 comments on commit 8bf84f5

Please sign in to comment.