linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
727 stars 71 forks source link

Replace panic with error return in `BezPath::from_svg` #329

Closed platlas closed 10 months ago

platlas commented 10 months ago

As pointed out in https://github.com/linebender/kurbo/issues/303#issuecomment-1856382911 BezPath::from_svg does not handle case when SVG path does not start with initial point. This PR makes the BezPath::from_svg return an error for this case.

platlas commented 10 months ago

It is failing on clippy lints: unused_enumerate_index (that was added to latest version) and items_after_test_module. But I need to find out why clippy have not warned me on my local machine even if I use latest version.