linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
697 stars 67 forks source link

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

Closed platlas closed 7 months ago

platlas commented 8 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 8 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.