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

@@ -1,8 +1,10 @@
use serde::{Deserialize, Serialize};
#[allow(deprecated)]
use solana_sdk::sysvar::recent_blockhashes;
use solana_sdk::{fee_calculator::FeeCalculator, hash::Hash, timing::timestamp};
use std::collections::HashMap;
use {
serde::{Deserialize, Serialize},
solana_sdk::{fee_calculator::FeeCalculator, hash::Hash, timing::timestamp},
std::collections::HashMap,
};
#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize, AbiExample)]
struct HashAge {
@@ -139,11 +141,13 @@ impl BlockhashQueue {
}
#[cfg(test)]
mod tests {
use super::*;
use bincode::serialize;
#[allow(deprecated)]
use solana_sdk::sysvar::recent_blockhashes::IterItem;
use solana_sdk::{clock::MAX_RECENT_BLOCKHASHES, hash::hash};
use {
super::*,
bincode::serialize,
solana_sdk::{clock::MAX_RECENT_BLOCKHASHES, hash::hash},
};
#[test]
fn test_register_hash() {