mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
Update Tokio to Rust 2018 (#1082)
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
use {RecvDgram, SendDgram};
|
||||
|
||||
use tokio_reactor::{Handle, PollEvented};
|
||||
|
||||
use futures::{Async, Poll};
|
||||
use crate::{RecvDgram, SendDgram};
|
||||
use futures::{try_ready, Async, Poll};
|
||||
use mio::Ready;
|
||||
use mio_uds;
|
||||
|
||||
use std::fmt;
|
||||
use std::io;
|
||||
use std::net::Shutdown;
|
||||
use std::os::unix::io::{AsRawFd, RawFd};
|
||||
use std::os::unix::net::{self, SocketAddr};
|
||||
use std::path::Path;
|
||||
use tokio_reactor::{Handle, PollEvented};
|
||||
|
||||
/// An I/O object representing a Unix datagram socket.
|
||||
pub struct UnixDatagram {
|
||||
@@ -197,7 +194,7 @@ impl UnixDatagram {
|
||||
}
|
||||
|
||||
impl fmt::Debug for UnixDatagram {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.io.get_ref().fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user