Skip to content

Commit

Permalink
clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Aug 20, 2024
1 parent 99b1206 commit fb3dced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions ledger-tool/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ pub fn output_slot(
Err(_) => {
// Transaction metadata could be missing, try to fetch just the
// entries and leave the metadata fields empty
let entries = blockstore
.get_slot_entries(slot, /*shred_start_index:*/ 0)
.map_err(|err| LedgerToolError::from(err))?;
let entries = blockstore.get_slot_entries(slot, /*shred_start_index:*/ 0)?;

let blockhash = entries
.last()
Expand Down
12 changes: 4 additions & 8 deletions transaction-status/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ use {
},
transaction_context::TransactionReturnData,
},
std::fmt,
std::{collections::HashSet, fmt},
thiserror::Error,
};
use std::collections::HashSet;

#[macro_use]
extern crate lazy_static;
Expand Down Expand Up @@ -1162,7 +1161,7 @@ impl Encodable for VersionedTransaction {
VersionedMessage::V0(message) => {
message.encode(UiTransactionEncoding::JsonParsed)
}
}
},
})
}
}
Expand Down Expand Up @@ -1279,11 +1278,8 @@ impl Encodable for v0::Message {
if encoding == UiTransactionEncoding::JsonParsed {
let account_keys = AccountKeys::new(&self.account_keys, None);
let loaded_addresses = LoadedAddresses::default();
let loaded_message = LoadedMessage::new_borrowed(
self,
&loaded_addresses,
&HashSet::new(),
);
let loaded_message =
LoadedMessage::new_borrowed(self, &loaded_addresses, &HashSet::new());
UiMessage::Parsed(UiParsedMessage {
account_keys: parse_v0_message_accounts(&loaded_message),
recent_blockhash: self.recent_blockhash.to_string(),
Expand Down

0 comments on commit fb3dced

Please sign in to comment.