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

@ -211,13 +211,15 @@ impl Counter {
}
#[cfg(test)]
mod tests {
use crate::counter::{Counter, DEFAULT_LOG_RATE, DEFAULT_METRICS_RATE};
use log::Level;
use log::*;
use serial_test::serial;
use std::env;
use std::sync::atomic::Ordering;
use std::sync::{Once, RwLock};
use {
crate::counter::{Counter, DEFAULT_LOG_RATE, DEFAULT_METRICS_RATE},
log::{Level, *},
serial_test::serial,
std::{
env,
sync::{atomic::Ordering, Once, RwLock},
},
};
fn get_env_lock() -> &'static RwLock<()> {
static mut ENV_LOCK: Option<RwLock<()>> = None;

View File

@ -3,7 +3,6 @@ pub mod counter;
pub mod datapoint;
mod metrics;
pub use crate::metrics::{flush, query, set_host_id, set_panic_hook, submit};
use std::sync::Arc;
/// A helper that sends the count of created tokens as a datapoint.