Fix import grouping

I would set this in rustfmt.toml, but it's not a stable option :(
This commit is contained in:
Nick Krichevsky 2022-10-28 00:17:01 -04:00
parent aa1d471684
commit 461a4856ed
5 changed files with 10 additions and 11 deletions

View file

@ -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;

View file

@ -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,
};

View file

@ -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;

View file

@ -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};

View file

@ -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;