diff --git a/CHANGELOG.md b/CHANGELOG.md index 08221144..f0222020 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ # Changelog -## 0.20.0 +## 0.19.2 + +* Fixes [#104](https://github.com/Peternator7/strum/issues/104). PR [#105](https://github.com/Peternator7/strum/issues/105) + +## 0.19.1 * **Breaking Change**: EnumVariantNames now properly adjusts to the `to_string` and `serialize` attributes. +* There's a regression in this release that may make strum imcompatible with other plugins if those + plugins use non-rust syntax in their attributes. [#104](https://github.com/Peternator7/strum/issues/104) ## 0.19.0 diff --git a/strum/Cargo.toml b/strum/Cargo.toml index 7615f812..9d0d538e 100644 --- a/strum/Cargo.toml +++ b/strum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum" -version = "0.19.1" +version = "0.19.2" authors = ["Peter Glotfelty "] license = "MIT" @@ -14,10 +14,10 @@ repository = "https://github.com/Peternator7/strum" readme = "../README.md" [dependencies] -strum_macros = { path = "../strum_macros", optional = true, version = "0.19.0" } +strum_macros = { path = "../strum_macros", optional = true, version = "0.19.2" } [dev-dependencies] -strum_macros = { path = "../strum_macros", version = "0.19.0" } +strum_macros = { path = "../strum_macros", version = "0.19.2" } [badges] travis-ci = { repository = "Peternator7/strum" } diff --git a/strum_macros/Cargo.toml b/strum_macros/Cargo.toml index 1578c00e..98140f31 100644 --- a/strum_macros/Cargo.toml +++ b/strum_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum_macros" -version = "0.19.1" +version = "0.19.2" authors = ["Peter Glotfelty "] license = "MIT" diff --git a/strum_macros/src/helpers/has_metadata.rs b/strum_macros/src/helpers/has_metadata.rs index f00cd04d..9a573749 100644 --- a/strum_macros/src/helpers/has_metadata.rs +++ b/strum_macros/src/helpers/has_metadata.rs @@ -11,7 +11,7 @@ fn get_metadata_inner<'a>( it: impl IntoIterator, ) -> Vec { it.into_iter() - .map(|attr| attr.parse_meta().unwrap()) + .filter_map(|attr| attr.parse_meta().ok()) .filter_map(|meta| match meta { syn::Meta::List(syn::MetaList { path, nested, .. }) => { if path.is_ident(ident) {