From b6c7a06edd5b62b7ff5ea89f1a150e1a3f3a036b Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 25 Jan 2019 03:45:48 +0100 Subject: [PATCH] avatar: Fix build with --features=disable-validation. --- src/avatar.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/avatar.rs b/src/avatar.rs index 07f0bde..f8507bf 100644 --- a/src/avatar.rs +++ b/src/avatar.rs @@ -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 = "" + let elem: Element = "" .parse() .unwrap(); let error = Data::try_from(elem).unwrap_err();