address new clippy lint assigning-clones (#2205)

This commit is contained in:
Divma 2024-05-02 14:35:29 -05:00 committed by GitHub
parent 3799e13f7b
commit c1f2e9b4de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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"))]
@ -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"))]