Satisfy SVG reader clippy gate

This commit is contained in:
Dylan M. Taylor committed 2026-11-15 15:22:39 +00:00
1 parent 6c22881fc1
commit 89cbc41650
1 file changed
+5 -4
+5 -4
View File
@@ -231,10 +231,11 @@ impl Walker<'_> {
if !CONTAINERS.contains(&name) {
return self.element(name, e);
}
if name == b"svg" && self.stack.len() == 1 {
if let Some(root) = self.stack.first_mut() {
*root = viewport(e);
}
if name == b"svg"
&& self.stack.len() == 1
&& let Some(root) = self.stack.first_mut()
{
*root = viewport(e);
}
if name == b"g"
&& attr(e, b"inkscape:groupmode").as_deref() == Some("layer")