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)]
mod tests {
use super::*;
use base64::Engine;
use std::str::FromStr;
#[cfg(target_pointer_width = "32")]
@ -116,7 +115,7 @@ mod tests {
<BINVAL>{}</BINVAL>
</PHOTO>
</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");