summaryrefslogtreecommitdiff
path: root/usvg/src
diff options
context:
space:
mode:
Diffstat (limited to 'usvg/src')
-rw-r--r--usvg/src/tree/nodes.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/usvg/src/tree/nodes.rs b/usvg/src/tree/nodes.rs
index 59a51ac..6199e07 100644
--- a/usvg/src/tree/nodes.rs
+++ b/usvg/src/tree/nodes.rs
@@ -694,3 +694,14 @@ pub struct FeTile {
/// `in` in the SVG.
pub input: FilterInput,
}
+
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn node_kind_size() {
+ assert!(std::mem::size_of::<NodeKind>() <= 256);
+ }
+}