Skip to content

Commit

Permalink
address new clippy lint assigning-clones (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed May 2, 2024
1 parent 3799e13 commit c1f2e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/proto/src/serialize/txt/zone.rs
Expand Up @@ -179,7 +179,7 @@ impl<'a> Parser<'a> {

// @ is a placeholder for specifying the current origin
Token::At => {
current_name = origin.clone(); // TODO a COW or RC would reduce copies...
current_name.clone_from(&origin); // TODO a COW or RC would reduce copies...
State::TtlClassType
}

Expand Down
4 changes: 2 additions & 2 deletions crates/resolver/src/name_server/name_server_pool.rs
Expand Up @@ -79,7 +79,7 @@ where
#[cfg(feature = "dns-over-rustls")]
let ns_config = {
let mut ns_config = ns_config.clone();
ns_config.tls_config = config.client_config().clone();
ns_config.tls_config.clone_from(config.client_config());
ns_config
};
#[cfg(not(feature = "dns-over-rustls"))]
Expand All @@ -97,7 +97,7 @@ where
#[cfg(feature = "dns-over-rustls")]
let ns_config = {
let mut ns_config = ns_config.clone();
ns_config.tls_config = config.client_config().clone();
ns_config.tls_config.clone_from(config.client_config());
ns_config
};
#[cfg(not(feature = "dns-over-rustls"))]
Expand Down

0 comments on commit c1f2e9b

Please sign in to comment.