Skip to content

Commit

Permalink
Fix lints and add Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-casper committed Mar 25, 2024
1 parent b96dddc commit 7a40dbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/src/reactor/main_reactor/tests/binary_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ fn get_dictionary_item_by_addr(state_root_hash: Digest, addr: DictionaryAddr) ->
name: "get_dictionary_item_by_addr",
request: BinaryRequest::Get(GetRequest::State(GlobalStateRequest::DictionaryItem {
state_identifier: Some(GlobalStateIdentifier::StateRootHash(state_root_hash)),
identifier: DictionaryItemIdentifier::DictionaryItem(addr.clone()),
identifier: DictionaryItemIdentifier::DictionaryItem(addr),
})),
asserter: Box::new(move |response| {
assert_response::<DictionaryQueryResult, _>(
Expand All @@ -766,7 +766,7 @@ fn get_dictionary_item_by_seed_uref(
request: BinaryRequest::Get(GetRequest::State(GlobalStateRequest::DictionaryItem {
state_identifier: Some(GlobalStateIdentifier::StateRootHash(state_root_hash)),
identifier: DictionaryItemIdentifier::URef {
seed_uref: seed_uref.clone(),
seed_uref,
dictionary_item_key: dictionary_item_key.clone(),
},
})),
Expand Down
2 changes: 1 addition & 1 deletion types/src/binary_port/type_wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl FromBytes for TransactionWithExecutionInfo {

/// A query result for a dictionary item, contains the dictionary item key and a global state query
/// result.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct DictionaryQueryResult {
key: Key,
query_result: GlobalStateQueryResult,
Expand Down

0 comments on commit 7a40dbe

Please sign in to comment.