xmpp-parsers: Update to the new jid crate
This commit is contained in:
parent
cdf4486e53
commit
022a920300
18 changed files with 61 additions and 50 deletions
|
|
@ -33,7 +33,7 @@ pub enum Error {
|
|||
|
||||
/// Generated when text which should be a [JID](../../jid/struct.Jid.html)
|
||||
/// fails to parse.
|
||||
JidParseError(jid::JidParseError),
|
||||
JidParseError(jid::Error),
|
||||
|
||||
/// Generated when text which should be a
|
||||
/// [DateTime](../date/struct.DateTime.html) fails to parse.
|
||||
|
|
@ -92,8 +92,8 @@ impl From<std::net::AddrParseError> for Error {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<jid::JidParseError> for Error {
|
||||
fn from(err: jid::JidParseError) -> Error {
|
||||
impl From<jid::Error> for Error {
|
||||
fn from(err: jid::Error) -> Error {
|
||||
Error::JidParseError(err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue