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
|
|
@ -5,9 +5,9 @@
|
|||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use crate::ns;
|
||||
use alloc::collections::BTreeMap;
|
||||
use jid::Jid;
|
||||
use minidom::Element;
|
||||
use std::collections::BTreeMap;
|
||||
use xso::error::{Error, FromElementError};
|
||||
|
||||
/// Should be implemented on every known payload of a `<message/>`.
|
||||
|
|
@ -256,7 +256,7 @@ impl Message {
|
|||
}
|
||||
}
|
||||
buf.extend(iter);
|
||||
std::mem::swap(&mut buf, &mut self.payloads);
|
||||
core::mem::swap(&mut buf, &mut self.payloads);
|
||||
result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue