Skip to content

Commit

Permalink
Merge pull request #336 from DJMcNab/non_exhaustive_errors
Browse files Browse the repository at this point in the history
Prepare 0.11 and make `SvgParseError` non_exhaustive
  • Loading branch information
richard-uk1 authored Feb 14, 2024
2 parents 4c48a13 + 7d3a3e1 commit 13328fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kurbo"
version = "0.10.4"
version = "0.11.0"
authors = ["Raph Levien <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
Expand Down Expand Up @@ -51,4 +51,3 @@ rand = "0.8.0"

[target.'cfg(target_arch="wasm32")'.dev-dependencies]
getrandom = { version = "0.2.0", features = ["js"] }

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 13328fb

Please sign in to comment.