Skip to content

Commit

Permalink
re-ran strip
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jul 25, 2023
1 parent 90fcec1 commit e083a03
Show file tree
Hide file tree
Showing 54 changed files with 3 additions and 66 deletions.
1 change: 0 additions & 1 deletion account-decoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,3 @@ fn slice_data(data: &[u8], data_slice_config: Option<UiDataSliceConfig>) -> &[u8
data
}
}

1 change: 0 additions & 1 deletion accounts-cluster-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,4 +700,3 @@ fn main() {
matches.is_present("reclaim_accounts"),
);
}

1 change: 0 additions & 1 deletion banks-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,3 @@ pub async fn start_tcp_client<T: ToSocketAddrs>(addr: T) -> Result<BanksClient,
inner: TarpcClient::new(client::Config::default(), transport).spawn(),
})
}

1 change: 0 additions & 1 deletion banks-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ pub trait Banks {
message: Message,
) -> Option<u64>;
}

4 changes: 1 addition & 3 deletions core/src/banking_trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use {
chrono::{DateTime, Local},
crossbeam_channel::{unbounded, Receiver, SendError, Sender, TryRecvError},
rolling_file::{RollingCondition, RollingConditionBasic, RollingFileAppender},
solana_perf::{
packet::{to_packet_batches, PacketBatch},
},
solana_perf::packet::{to_packet_batches, PacketBatch},
solana_sdk::{hash::Hash, slot_history::Slot},
std::{
fs::{create_dir_all, remove_dir_all},
Expand Down
1 change: 0 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ extern crate solana_metrics;

#[macro_use]
extern crate solana_frozen_abi_macro;

1 change: 0 additions & 1 deletion dos/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,4 +781,3 @@ fn main() {

run_dos(&nodes, 0, client, cmd_params);
}

1 change: 0 additions & 1 deletion frozen-abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ mod hash;
#[cfg(RUSTC_WITH_SPECIALIZATION)]
#[macro_use]
extern crate solana_frozen_abi_macro;

1 change: 0 additions & 1 deletion genesis/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,4 +700,3 @@ fn main() -> Result<(), Box<dyn error::Error>> {
println!("{genesis_config}");
Ok(())
}

4 changes: 1 addition & 3 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ pub(crate) struct PruneData {
wallclock: u64,
}

impl PruneData {
}
impl PruneData {}

impl Sanitize for PruneData {
fn sanitize(&self) -> Result<(), SanitizeError> {
Expand Down Expand Up @@ -3183,4 +3182,3 @@ fn filter_on_shred_version(
}
}
}

2 changes: 0 additions & 2 deletions gossip/src/contact_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ impl ContactInfo {
remove_socket!(remove_tvu, SOCKET_TAG_TVU);
remove_socket!(remove_tvu_forwards, SOCKET_TAG_TVU_FORWARDS);


// Adds given IP address to self.addrs returning respective index.
fn push_addr(&mut self, addr: IpAddr) -> Result<u8, Error> {
match self.addrs.iter().position(|k| k == &addr) {
Expand Down Expand Up @@ -510,4 +509,3 @@ pub(crate) fn get_quic_socket(socket: &SocketAddr) -> Result<SocketAddr, Error>
.ok_or_else(|| Error::InvalidPort(socket.port()))?,
))
}

2 changes: 0 additions & 2 deletions gossip/src/crds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ impl Crds {
self.table.is_empty()
}


pub(crate) fn par_values(&self) -> ParValues<'_, CrdsValueLabel, VersionedCrdsValue> {
self.table.par_values()
}
Expand Down Expand Up @@ -710,4 +709,3 @@ impl CrdsStats {
}
}
}

1 change: 0 additions & 1 deletion gossip/src/crds_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ impl_crds_entry!(
CrdsData::SnapshotHashes(snapshot_hashes),
snapshot_hashes
);

1 change: 0 additions & 1 deletion gossip/src/crds_gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,3 @@ pub(crate) fn maybe_ping_gossip_addresses<R: Rng + CryptoRng>(
})
.collect()
}

2 changes: 0 additions & 2 deletions gossip/src/crds_gossip_pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ impl solana_sdk::sanitize::Sanitize for CrdsFilter {
}

impl CrdsFilter {

fn compute_mask(seed: u64, mask_bits: u32) -> u64 {
assert!(seed <= 2u64.pow(mask_bits));
let seed: u64 = seed.checked_shl(64 - mask_bits).unwrap_or(0x0);
Expand Down Expand Up @@ -554,4 +553,3 @@ impl<'a> Index<&Pubkey> for CrdsTimeouts<'a> {
}
}
}

1 change: 0 additions & 1 deletion gossip/src/crds_gossip_push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,3 @@ impl CrdsGossipPush {
)
}
}

1 change: 0 additions & 1 deletion gossip/src/crds_shards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@ where
}
}
}

1 change: 0 additions & 1 deletion gossip/src/crds_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,4 +697,3 @@ pub(crate) fn sanitize_wallclock(wallclock: u64) -> Result<(), SanitizeError> {
Ok(())
}
}

1 change: 0 additions & 1 deletion gossip/src/duplicate_shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,3 @@ impl Sanitize for DuplicateShred {
self.from.sanitize()
}
}

1 change: 0 additions & 1 deletion gossip/src/duplicate_shred_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,3 @@ fn should_consume_slot(
.entry(slot)
.or_insert_with(|| blockstore.has_duplicate_shreds_in_slot(slot))
}

1 change: 0 additions & 1 deletion gossip/src/duplicate_shred_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ impl DuplicateShredListener {
}
}
}

1 change: 0 additions & 1 deletion gossip/src/epoch_slots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,3 @@ impl EpochSlots {
epoch_slots
}
}

1 change: 0 additions & 1 deletion gossip/src/gossip_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,3 @@ pub fn make_gossip_node(
);
(gossip_service, ip_echo, cluster_info)
}

2 changes: 0 additions & 2 deletions gossip/src/legacy_contact_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ impl LegacyContactInfo {
self.wallclock = wallclock;
}


get_socket!(gossip);
get_socket!(tvu);
get_socket!(tvu_forwards);
Expand Down Expand Up @@ -258,4 +257,3 @@ impl TryFrom<&ContactInfo> for LegacyContactInfo {
})
}
}

1 change: 0 additions & 1 deletion gossip/src/ping_pong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,3 @@ impl PingCache {
self.pongs.put((node, socket), now);
}
}

1 change: 0 additions & 1 deletion gossip/src/push_active_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,3 @@ fn get_stake_bucket(stake: Option<&u64>) -> usize {
let bucket = u64::BITS - stake.leading_zeros();
(bucket as usize).min(NUM_PUSH_ACTIVE_SET_ENTRIES - 1)
}

2 changes: 0 additions & 2 deletions gossip/src/received_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ impl ReceivedCache {
.into_iter()
.flatten()
}

}

impl ReceivedCacheEntry {
Expand Down Expand Up @@ -115,4 +114,3 @@ impl ReceivedCacheEntry {
.map(|(node, _stake)| node)
}
}

1 change: 0 additions & 1 deletion gossip/src/weighted_shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@ where
})
}
}

2 changes: 0 additions & 2 deletions keygen/src/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ mod smallest_length_44_public_key {
use solana_sdk::{pubkey, pubkey::Pubkey};

pub(super) static PUBKEY: Pubkey = pubkey!("21111111111111111111111111111111111111111111");

}

const NO_PASSPHRASE: &str = "";
Expand Down Expand Up @@ -885,4 +884,3 @@ fn do_main(matches: &ArgMatches) -> Result<(), Box<dyn error::Error>> {

Ok(())
}

1 change: 0 additions & 1 deletion net-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,4 +577,3 @@ pub fn find_available_port_in_range(ip_addr: IpAddr, range: PortRange) -> io::Re
tries_left -= 1;
}
}

1 change: 0 additions & 1 deletion perf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ extern crate lazy_static;
#[macro_use]
extern crate log;


#[macro_use]
extern crate solana_metrics;

Expand Down
1 change: 0 additions & 1 deletion poh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ pub mod poh_service;

#[macro_use]
extern crate solana_metrics;

1 change: 0 additions & 1 deletion programs/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1635,4 +1635,3 @@ fn execute<'a, 'b: 'a>(

execute_or_deserialize_result
}

1 change: 0 additions & 1 deletion programs/loader-v3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,4 +617,3 @@ pub fn process_instruction_inner(
}
.map(|_| 0)
}

1 change: 0 additions & 1 deletion programs/sbf/rust/128bit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion programs/sbf/rust/alloc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion programs/sbf/rust/dep_crate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

SUCCESS
}

1 change: 0 additions & 1 deletion programs/sbf/rust/deprecated_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ fn process_instruction(

Ok(())
}

1 change: 0 additions & 1 deletion programs/sbf/rust/iter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion programs/sbf/rust/many_args/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion programs/sbf/rust/many_args_dep/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ pub fn many_args_sret(
group3: u128::from(arg7) + u128::from(arg8) + u128::from(arg9),
}
}

1 change: 0 additions & 1 deletion programs/sbf/rust/param_passing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion programs/sbf/rust/param_passing_dep/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ impl<'a> TestDep {
}
}
}

1 change: 0 additions & 1 deletion programs/sbf/rust/sanity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ pub fn process_instruction(
sol_log_compute_units();
Ok(())
}

1 change: 0 additions & 1 deletion programs/sbf/rust/sha/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u64 {

custom_heap_default!();
custom_panic_default!();

1 change: 0 additions & 1 deletion rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ extern crate log;
#[macro_use]
extern crate serde_derive;


#[macro_use]
extern crate solana_metrics;
1 change: 0 additions & 1 deletion runtime/store-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ fn is_account_zeroed(account: &StoredAccountMeta) -> bool {
&& account.pubkey() == &Pubkey::default()
&& account.clone_account() == AccountSharedData::default()
}

1 change: 0 additions & 1 deletion sdk/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,4 +755,3 @@ macro_rules! unchecked_div_by_const {
// `solana_sdk`.
#[cfg(not(target_os = "solana"))]
pub mod example_mocks;

2 changes: 1 addition & 1 deletion sdk/src/compute_budget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ComputeBudgetInstruction {

/// Serialize Instruction using borsh, this is only used in runtime::cost_model::tests but compilation
/// can't be restricted as it's used across packages
// #[rustfmt::skip]
// #[cfg(rustfmt_escaped_skip)]
pub fn pack(self) -> Result<Vec<u8>, std::io::Error> {
self.try_to_vec()
}
Expand Down
1 change: 0 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,3 @@ extern crate log as logger;

#[macro_use]
extern crate solana_frozen_abi_macro;

3 changes: 0 additions & 3 deletions storage-bigtable/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ struct StoredConfirmedBlock {
block_height: Option<u64>,
}


impl From<StoredConfirmedBlock> for ConfirmedBlock {
fn from(confirmed_block: StoredConfirmedBlock) -> Self {
let StoredConfirmedBlock {
Expand Down Expand Up @@ -153,7 +152,6 @@ struct StoredConfirmedBlockTransaction {
meta: Option<StoredConfirmedBlockTransactionStatusMeta>,
}


impl From<StoredConfirmedBlockTransaction> for TransactionWithStatusMeta {
fn from(tx_with_meta: StoredConfirmedBlockTransaction) -> Self {
let StoredConfirmedBlockTransaction { transaction, meta } = tx_with_meta;
Expand Down Expand Up @@ -1033,4 +1031,3 @@ impl LedgerStorage {
Ok(())
}
}

1 change: 0 additions & 1 deletion transaction-dos/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,3 @@ fn main() {
batch_sleep_ms,
);
}

1 change: 0 additions & 1 deletion transaction-status/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1320,4 +1320,3 @@ impl From<TransactionReturnData> for UiTransactionReturnData {
pub enum UiReturnDataEncoding {
Base64,
}

1 change: 0 additions & 1 deletion version/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,3 @@ macro_rules! version {
&*format!("{:?}", $crate::Version::default())
};
}

0 comments on commit e083a03

Please sign in to comment.