xmpp-parsers: Fix vCard-temp test
xso::text::TextCodec is now generic on base64::Engine, which causes a base64 engine to have two encode() methods, needing to disambiguate them.
This commit is contained in:
parent
4c9a271842
commit
07f3dc4785
1 changed files with 1 additions and 2 deletions
|
|
@ -73,7 +73,6 @@ impl IqResultPayload for VCard {}
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use base64::Engine;
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(target_pointer_width = "32")]
|
||||||
|
|
@ -116,7 +115,7 @@ mod tests {
|
||||||
<BINVAL>{}</BINVAL>
|
<BINVAL>{}</BINVAL>
|
||||||
</PHOTO>
|
</PHOTO>
|
||||||
</vCard>",
|
</vCard>",
|
||||||
base64::prelude::BASE64_STANDARD.encode(&bytes)
|
base64::Engine::encode(&base64::prelude::BASE64_STANDARD, &bytes)
|
||||||
);
|
);
|
||||||
|
|
||||||
let test_vcard = Element::from_str(&test_vcard).expect("Failed to parse XML");
|
let test_vcard = Element::from_str(&test_vcard).expect("Failed to parse XML");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue