From f746c3699acf150112e26c00e6c8ca666d8d068d Mon Sep 17 00:00:00 2001 From: Peter Glotfelty Date: Sat, 27 Jan 2024 11:49:45 -0800 Subject: [PATCH] Update changelog + version --- CHANGELOG.md | 4 ++++ strum/Cargo.toml | 2 +- strum/src/lib.rs | 2 +- strum_macros/Cargo.toml | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a031653..569ca3d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.26.1 + +* [#325](https://github.com/Peternator7/strum/pull/325): use `core` instead of `std` in VariantArray. + ## 0.26.0 ### Breaking Changes diff --git a/strum/Cargo.toml b/strum/Cargo.toml index 0a2c3a32..809fb272 100644 --- a/strum/Cargo.toml +++ b/strum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum" -version = "0.26.0" +version = "0.26.1" edition = "2018" authors = ["Peter Glotfelty "] license = "MIT" diff --git a/strum/src/lib.rs b/strum/src/lib.rs index 959a647d..65c2e55f 100644 --- a/strum/src/lib.rs +++ b/strum/src/lib.rs @@ -223,7 +223,7 @@ pub trait VariantNames { /// enums with inner data in one or more variants. Consider using it alongside /// [`EnumDiscriminants`] if you require inner data but still want to have an /// static array of variants. -pub trait VariantArray: core::marker::Sized + 'static { +pub trait VariantArray: ::core::marker::Sized + 'static { const VARIANTS: &'static [Self]; } diff --git a/strum_macros/Cargo.toml b/strum_macros/Cargo.toml index 4cdb87e9..7826bce0 100644 --- a/strum_macros/Cargo.toml +++ b/strum_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "strum_macros" -version = "0.26.0" +version = "0.26.1" edition = "2018" authors = ["Peter Glotfelty "] license = "MIT" @@ -26,4 +26,4 @@ rustversion = "1.0" syn = { version = "2.0", features = ["parsing", "extra-traits"] } [dev-dependencies] -strum = { path = "../strum", version= "0.25" } +strum = { path = "../strum", version= "0.26" }