mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
Satisfy SVG reader clippy gate
This commit is contained in:
1 parent
6c22881fc1
commit
89cbc41650
1 file changed
+5
-4
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user