Skip to content

Commit 54ec4f5

Browse files
committed
fix: remove unnecessary clones
1 parent 6682ce8 commit 54ec4f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stacks-signer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SpawnedSigner
147147
cmd_send,
148148
res_recv,
149149
_phantom: std::marker::PhantomData,
150-
config: config.clone(),
150+
config,
151151
}
152152
}
153153
}

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ use crate::tests::neon_integrations::{
105105
};
106106
use crate::tests::{
107107
get_chain_info, make_contract_publish, make_contract_publish_versioned, make_stacks_transfer,
108-
set_random_binds, to_addr,
108+
to_addr,
109109
};
110110
use crate::{tests, BitcoinRegtestController, BurnchainController, Config, ConfigFile, Keychain};
111111

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ fn signer_set_rollover() {
23932393
let short_timeout = Duration::from_secs(20);
23942394

23952395
// Verify that naka_conf has our new signer's event observers
2396-
for toml in new_signer_configs.clone() {
2396+
for toml in &new_signer_configs {
23972397
let signer_config = SignerConfig::load_from_str(&toml).unwrap();
23982398
let endpoint = format!("{}", signer_config.endpoint);
23992399
assert!(signer_test

0 commit comments

Comments
 (0)