mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
avatar: Fix build with --features=disable-validation.
This commit is contained in:
parent
35fccafc09
commit
b6c7a06edd
1 changed files with 2 additions and 1 deletions
|
@ -106,9 +106,10 @@ mod tests {
|
|||
assert_eq!(data.data, b"\0\0\0");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid() {
|
||||
let elem: Element = "<data xmlns='urn:xmpp:avatar:data' id='coucou'>"
|
||||
let elem: Element = "<data xmlns='urn:xmpp:avatar:data' id='coucou'/>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let error = Data::try_from(elem).unwrap_err();
|
||||
|
|
Loading…
Reference in a new issue