Reformat imports to a consistent style for imports

rustfmt.toml configuration:
  imports_granularity = "One"
  group_imports = "One"
This commit is contained in:
Michael Vines
2021-12-03 09:00:31 -08:00
parent 0ef1b25e4b
commit b8837c04ec
397 changed files with 5990 additions and 5175 deletions

View File

@ -36,8 +36,7 @@ fn tune_poh_service_priority(uid: u32) {
None
}
use std::process::Command;
use std::str::from_utf8;
use std::{process::Command, str::from_utf8};
if let Some(pid) = find_pid("solana-validato", "/proc", uid, |dir| {
let mut path = dir.path();
@ -68,8 +67,7 @@ fn tune_poh_service_priority(uid: u32) {
#[cfg(target_os = "linux")]
fn tune_kernel_udp_buffers_and_vmmap() {
use sysctl::CtlValue::String;
use sysctl::Sysctl;
use sysctl::{CtlValue::String, Sysctl};
fn sysctl_write(name: &str, value: &str) {
if let Ok(ctl) = sysctl::Ctl::new(name) {
info!("Old {} value {:?}", name, ctl.value());