Fix import grouping
I would set this in rustfmt.toml, but it's not a stable option :(
This commit is contained in:
parent
aa1d471684
commit
461a4856ed
|
@ -332,10 +332,9 @@ mod tests {
|
|||
use crate::testutil::TokioSpawner;
|
||||
|
||||
use super::*;
|
||||
use futures::stream;
|
||||
use futures::{
|
||||
channel::oneshot::{self, Sender},
|
||||
StreamExt,
|
||||
stream, StreamExt,
|
||||
};
|
||||
use thiserror::Error;
|
||||
use tokio::time;
|
||||
|
|
|
@ -7,8 +7,7 @@ use thiserror::Error;
|
|||
|
||||
use crate::{IMAPSession, IMAPTransportStream};
|
||||
use async_imap::{
|
||||
error::Error as IMAPError,
|
||||
error::Result as IMAPResult,
|
||||
error::{Error as IMAPError, Result as IMAPResult},
|
||||
extensions::idle::{Handle, IdleResponse},
|
||||
imap_proto::Response as IMAPResponse,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
//! The login module abstracts the generation of IMAP sessions for use when fetching emails
|
||||
|
||||
use crate::config::IMAP as IMAPConfig;
|
||||
use crate::{IMAPClient, IMAPSession};
|
||||
use crate::{config::IMAP as IMAPConfig, IMAPClient, IMAPSession};
|
||||
use async_imap::error::Result as IMAPResult;
|
||||
use async_native_tls::TlsConnector;
|
||||
use async_trait::async_trait;
|
||||
|
|
|
@ -5,8 +5,7 @@ extern crate log;
|
|||
|
||||
use async_trait::async_trait;
|
||||
use clap::Parser;
|
||||
use futures::{select, FutureExt};
|
||||
use futures::{stream::StreamExt, Future};
|
||||
use futures::{select, stream::StreamExt, Future, FutureExt};
|
||||
use log::LevelFilter;
|
||||
use tokio::task::{JoinError, JoinHandle};
|
||||
use ynabifier::task::{Handle, Join};
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
use async_trait::async_trait;
|
||||
use std::error::Error;
|
||||
use std::fmt::{Display, Formatter};
|
||||
pub(crate) use {register::Registry, stop::Resolution as StopResolution, stop::ResolveOrStop};
|
||||
pub(crate) use register::Registry;
|
||||
use std::{
|
||||
error::Error,
|
||||
fmt::{Display, Formatter},
|
||||
};
|
||||
pub(crate) use stop::{Resolution as StopResolution, ResolveOrStop};
|
||||
|
||||
use futures::Future;
|
||||
use thiserror::Error;
|
||||
|
|
Loading…
Reference in a new issue