Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

SVG import: import NodeId and SvgError in importer.rs (#4299 made its imports explicit)

bflatasticcfe21231c80b
diff --git a/crates/svg/src/import/importer.rs b/crates/svg/src/import/importer.rs
index 2e3bc14c2..2215458e8 100644
--- a/crates/svg/src/import/importer.rs
+++ b/crates/svg/src/import/importer.rs
@@ -3,9 +3,10 @@ use super::layers::filter_names;
use super::prepass::link;
use super::{
Affine, Appearance, AppearanceItem, Arc, BlendMode, Color, Dash, FillLayer, FillRule, Gradient, GradientGeom, GradientKind, GradientPaint,
- GradientStop, ImageBlob, ImageObject, Importer, LineCap, LineJoin, Node, NodeKind, Paint, PathData, PatternDef, Point, Rect, Reuse, StrokeLayer,
- Vec2, fnv1a, fx, shapes, spread, text, vector_effect,
+ GradientStop, ImageBlob, ImageObject, Importer, LineCap, LineJoin, Node, NodeId, NodeKind, Paint, PathData, PatternDef, Point, Rect, Reuse,
+ StrokeLayer, Vec2, fnv1a, fx, shapes, spread, text, vector_effect,
};
+use crate::SvgError;
/// How many clip paths deep (`<clipPath clip-path>`) an object's clip is read.
const MAX_CLIP_NEST: usize = 16;