tokio_xmpp: Replace std::io calls with use std::io
This commit is contained in:
parent
67442bfa0b
commit
5bc94dce95
2 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ use hickory_resolver::{
|
||||||
error::ResolveError as DnsResolveError, proto::error::ProtoError as DnsProtoError,
|
error::ResolveError as DnsResolveError, proto::error::ProtoError as DnsProtoError,
|
||||||
};
|
};
|
||||||
use sasl::client::MechanismError as SaslMechanismError;
|
use sasl::client::MechanismError as SaslMechanismError;
|
||||||
use std::io::Error as IoError;
|
use std::io;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
connect::ServerConnectorError, jid, minidom,
|
connect::ServerConnectorError, jid, minidom,
|
||||||
|
|
@ -15,7 +15,7 @@ use crate::{
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// I/O error
|
/// I/O error
|
||||||
Io(IoError),
|
Io(io::Error),
|
||||||
/// Error parsing Jabber-Id
|
/// Error parsing Jabber-Id
|
||||||
JidParse(jid::Error),
|
JidParse(jid::Error),
|
||||||
/// Protocol-level error
|
/// Protocol-level error
|
||||||
|
|
@ -71,8 +71,8 @@ impl fmt::Display for Error {
|
||||||
|
|
||||||
impl StdError for Error {}
|
impl StdError for Error {}
|
||||||
|
|
||||||
impl From<IoError> for Error {
|
impl From<io::Error> for Error {
|
||||||
fn from(e: IoError) -> Self {
|
fn from(e: io::Error) -> Self {
|
||||||
Error::Io(e)
|
Error::Io(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ pub struct Timeouts {
|
||||||
/// Maximum silence after a soft timeout.
|
/// Maximum silence after a soft timeout.
|
||||||
///
|
///
|
||||||
/// If the stream is silent for longer than this time after a soft timeout
|
/// If the stream is silent for longer than this time after a soft timeout
|
||||||
/// has been emitted, a hard [`TimedOut`][`std::io::ErrorKind::TimedOut`]
|
/// has been emitted, a hard [`TimedOut`][`io::ErrorKind::TimedOut`]
|
||||||
/// I/O error is returned and the stream is to be considered dead.
|
/// I/O error is returned and the stream is to be considered dead.
|
||||||
pub response_timeout: Duration,
|
pub response_timeout: Duration,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue