Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yanliu38 committed Dec 20, 2024
1 parent 5ac268c commit ea370a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/contract_sign_reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub fn do_contract_sign_reply(

ledger.upsert(
LABEL_CONTRACT_SIGN_REPLY,
&contract_id,
contract_id,
payload_serialized,
)
.map(|_| {
Expand Down
2 changes: 1 addition & 1 deletion common/src/contract_sign_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn do_contracts_list_pending(
Some(pubkey_bytes) => {
fn_info!(
"{}",
DccIdentity::new_verifying_from_bytes(&pubkey_bytes).unwrap()
DccIdentity::new_verifying_from_bytes(pubkey_bytes).unwrap()
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/src/ledger_refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn refresh_caches_from_ledger(ledger: &LedgerMap) -> anyhow::Result<()> {
}
LABEL_CONTRACT_SIGN_REQUEST => {
let contract_id = entry.key();
let payload = match ContractSignRequestPayload::try_from_slice(&entry.value()) {
let payload = match ContractSignRequestPayload::try_from_slice(entry.value()) {
Ok(payload) => payload,
Err(e) => {
warn!("Failed to deserialize contract sign request payload: {}", e);
Expand Down

0 comments on commit ea370a5

Please sign in to comment.