Skip to content

Commit

Permalink
Make SvgParseError non_exhaustive
Browse files Browse the repository at this point in the history
linebender#329 was a breaking change
To avoid a similar situation in future, mark the offending enum
`#[non_exhaustive]`
  • Loading branch information
DJMcNab committed Feb 14, 2024
1 parent 223a487 commit 3ed9e35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ impl BezPath {

/// An error which can be returned when parsing an SVG.
#[derive(Debug)]
#[non_exhaustive]
pub enum SvgParseError {
/// A number was expected.
Wrong,
Expand Down

0 comments on commit 3ed9e35

Please sign in to comment.