parsers: Replace std stuff with alloc/core stuff
This commit is contained in:
parent
1ce2f894aa
commit
087534be1e
23 changed files with 201 additions and 200 deletions
|
|
@ -8,10 +8,9 @@
|
|||
use xso::{error::Error, AsOptionalXmlText, AsXml, AsXmlText, FromXml, FromXmlText};
|
||||
|
||||
use crate::ns;
|
||||
use alloc::{borrow::Cow, collections::BTreeMap};
|
||||
use jid::Jid;
|
||||
use minidom::Element;
|
||||
use std::borrow::Cow;
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
/// Should be implemented on every known payload of a `<presence/>`.
|
||||
pub trait PresencePayload: TryFrom<Element> + Into<Element> {}
|
||||
|
|
@ -509,7 +508,7 @@ mod tests {
|
|||
let error = Presence::try_from(elem).unwrap_err();
|
||||
match error {
|
||||
FromElementError::Invalid(Error::TextParseError(e))
|
||||
if e.is::<std::num::ParseIntError>() =>
|
||||
if e.is::<core::num::ParseIntError>() =>
|
||||
{
|
||||
()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue