style: use nested use statements
This commit is contained in:
parent
a45482cb0c
commit
dbc6b97c12
|
@ -1,26 +1,38 @@
|
||||||
mod stats;
|
mod stats;
|
||||||
|
|
||||||
use std::cmp::Ordering;
|
use std::{
|
||||||
use std::convert::Infallible;
|
cmp::Ordering,
|
||||||
|
convert::Infallible,
|
||||||
|
sync::Arc,
|
||||||
|
time::Duration,
|
||||||
|
};
|
||||||
use anyhow::{Result, Context};
|
use anyhow::{Result, Context};
|
||||||
use std::sync::Arc;
|
|
||||||
use std::time::Duration;
|
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use mongodb::{Client as MongoClient, Collection, IndexModel};
|
use mongodb::{
|
||||||
use mongodb::options::{IndexOptions, UpdateOptions};
|
Client as MongoClient,
|
||||||
use mongodb::results::UpdateResult;
|
Collection,
|
||||||
|
IndexModel,
|
||||||
|
bson::doc,
|
||||||
|
options::{IndexOptions, UpdateOptions},
|
||||||
|
results::UpdateResult,
|
||||||
|
};
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
use tokio_stream::StreamExt;
|
use tokio_stream::StreamExt;
|
||||||
use warp::{Filter, Reply};
|
use warp::{
|
||||||
use warp::filters::BoxedFilter;
|
Filter,
|
||||||
use warp::http::Uri;
|
Reply,
|
||||||
use crate::config::Config;
|
filters::BoxedFilter,
|
||||||
use crate::ffxiv::Language;
|
http::Uri,
|
||||||
use crate::listing::PartyFinderListing;
|
};
|
||||||
use crate::listing_container::{ListingContainer, QueriedListing};
|
use crate::{
|
||||||
use crate::stats::CachedStatistics;
|
config::Config,
|
||||||
use crate::template::listings::ListingsTemplate;
|
ffxiv::Language,
|
||||||
use crate::template::stats::StatsTemplate;
|
listing::PartyFinderListing,
|
||||||
|
listing_container::{ListingContainer, QueriedListing},
|
||||||
|
stats::CachedStatistics,
|
||||||
|
template::listings::ListingsTemplate,
|
||||||
|
template::stats::StatsTemplate,
|
||||||
|
};
|
||||||
|
|
||||||
pub async fn start(config: Arc<Config>) -> Result<()> {
|
pub async fn start(config: Arc<Config>) -> Result<()> {
|
||||||
let state = State::new(Arc::clone(&config)).await?;
|
let state = State::new(Arc::clone(&config)).await?;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user