*: Format with rustfmt (#2188)

Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
Max Inden
2021-08-11 13:12:12 +02:00
committed by GitHub
parent 008561283e
commit f701b24ec0
171 changed files with 10051 additions and 7193 deletions

View File

@ -26,12 +26,12 @@ pub mod async_io;
#[cfg(feature = "tokio")]
pub mod tokio;
use futures::io::{AsyncRead, AsyncWrite};
use futures::future::BoxFuture;
use futures::io::{AsyncRead, AsyncWrite};
use ipnet::IpNet;
use std::net::{SocketAddr, TcpListener, TcpStream};
use std::task::{Context, Poll};
use std::{fmt, io};
use std::net::{SocketAddr, TcpListener, TcpStream};
/// An event relating to a change of availability of an address
/// on a network interface.
@ -73,7 +73,10 @@ pub trait Provider: Clone + Send + 'static {
/// Polls a [`Self::Listener`] for an incoming connection, ensuring a task wakeup,
/// if necessary.
fn poll_accept(_: &mut Self::Listener, _: &mut Context<'_>) -> Poll<io::Result<Incoming<Self::Stream>>>;
fn poll_accept(
_: &mut Self::Listener,
_: &mut Context<'_>,
) -> Poll<io::Result<Incoming<Self::Stream>>>;
/// Polls a [`Self::IfWatcher`] for network interface changes, ensuring a task wakeup,
/// if necessary.