Suppress SVG loading errors in tests

This commit is contained in:
Nathan Sobo
2021-09-19 17:34:04 -07:00
parent 9e6c54ba0c
commit 1719d7da2a
3 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -47,8 +47,9 @@ impl Element for Svg {
);
(size, Some(tree))
}
Err(error) => {
log::error!("{}", error);
Err(_error) => {
#[cfg(not(any(test, feature = "test-support")))]
log::error!("{}", _error);
(constraint.min, None)
}
}