Skip to content

Commit f7dcb5c

Browse files
fix: remove unnecessary clone on Copy type
Removed .clone() call on ContractInstanceId which implements Copy trait. Co-authored-by: nacho.d.g <iduartgomez@users.noreply.github.com>
1 parent ce82e6a commit f7dcb5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub mod local_node {
139139
let attested_contract = token.and_then(|token| {
140140
gw.attested_contracts
141141
.get(&token)
142-
.map(|entry| entry.contract_id.clone())
142+
.map(|entry| entry.contract_id)
143143
});
144144
executor.delegate_request(op, attested_contract.as_ref())
145145
}

0 commit comments

Comments
 (0)