address new clippy lint assigning-clones (#2205)
This commit is contained in:
parent
3799e13f7b
commit
c1f2e9b4de
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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"))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user