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)]
|
||||
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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue