Reformat imports to a consistent style for imports
rustfmt.toml configuration: imports_granularity = "One" group_imports = "One"
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
pub use solana_gossip::cluster_info::MINIMUM_VALIDATOR_PORT_RANGE_WIDTH;
|
||||
pub use solana_test_validator;
|
||||
use {
|
||||
console::style,
|
||||
fd_lock::{RwLock, RwLockWriteGuard},
|
||||
@ -15,6 +13,7 @@ use {
|
||||
thread::JoinHandle,
|
||||
},
|
||||
};
|
||||
pub use {solana_gossip::cluster_info::MINIMUM_VALIDATOR_PORT_RANGE_WIDTH, solana_test_validator};
|
||||
|
||||
pub mod admin_rpc_service;
|
||||
pub mod bootstrap;
|
||||
|
@ -1,4 +1,6 @@
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
use jemallocator::Jemalloc;
|
||||
use {
|
||||
clap::{
|
||||
crate_description, crate_name, value_t, value_t_or_exit, values_t, values_t_or_exit, App,
|
||||
@ -79,9 +81,6 @@ use {
|
||||
},
|
||||
};
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
use jemallocator::Jemalloc;
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: Jemalloc = Jemalloc;
|
||||
@ -423,9 +422,7 @@ fn platform_id() -> String {
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn check_os_network_limits() {
|
||||
use solana_metrics::datapoint_warn;
|
||||
use std::collections::HashMap;
|
||||
use sysctl::Sysctl;
|
||||
use {solana_metrics::datapoint_warn, std::collections::HashMap, sysctl::Sysctl};
|
||||
|
||||
fn sysctl_read(name: &str) -> Result<String, sysctl::SysctlError> {
|
||||
let ctl = sysctl::Ctl::new(name)?;
|
||||
|
Reference in New Issue
Block a user