[router] Add rustfmt and set group imports by default (#11732)

This commit is contained in:
Chang Su
2025-10-16 17:33:29 -07:00
committed by GitHub
parent 7a7f99beb7
commit dc01313da1
126 changed files with 1127 additions and 813 deletions

View File

@@ -1,17 +1,13 @@
use dashmap::mapref::entry::Entry;
use dashmap::DashMap;
use std::{
cmp::Reverse,
collections::{BinaryHeap, HashMap, VecDeque},
sync::{Arc, RwLock},
time::{Duration, SystemTime, UNIX_EPOCH},
};
use dashmap::{mapref::entry::Entry, DashMap};
use tracing::info;
use std::cmp::Reverse;
use std::collections::BinaryHeap;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::sync::Arc;
use std::sync::RwLock;
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};
type NodeRef = Arc<Node>;
#[derive(Debug)]
@@ -666,12 +662,12 @@ impl Tree {
// Unit tests
#[cfg(test)]
mod tests {
use rand::distr::Alphanumeric;
use rand::distr::SampleString;
use rand::rng as thread_rng;
use rand::Rng;
use std::thread;
use std::time::Instant;
use std::{thread, time::Instant};
use rand::{
distr::{Alphanumeric, SampleString},
rng as thread_rng, Rng,
};
use super::*;