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:
Emmanuel Gil Peyrot 2025-01-25 13:20:39 +01:00
commit 07f3dc4785

View file

@ -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");