From 1a3ef5cd2315420516e88e8841e544f35602a07d Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 4 Feb 2024 14:33:18 +0100 Subject: [PATCH] chore: bump strum --- Cargo.toml | 2 +- src/named.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 24c79d4..d1e1b04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ repository = "https://github.com/alloy-rs/chains" [dependencies] num_enum = { version = "0.7", default-features = false } -strum = { version = "0.25", default-features = false, features = ["derive"] } +strum = { version = "0.26", default-features = false, features = ["derive"] } # serde serde = { version = "1.0", default-features = false, features = [ diff --git a/src/named.rs b/src/named.rs index faf22e4..67e0ea7 100644 --- a/src/named.rs +++ b/src/named.rs @@ -24,7 +24,8 @@ use num_enum::TryFromPrimitiveError; /// An Ethereum EIP-155 chain. #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(strum::IntoStaticStr)] // Into<&'static str>, AsRef, fmt::Display and serde::Serialize -#[derive(strum::EnumVariantNames)] // NamedChain::VARIANTS +#[derive(strum::VariantNames)] // NamedChain::VARIANTS +#[derive(strum::VariantArray)] // NamedChain::VARIANTS #[derive(strum::EnumString)] // FromStr, TryFrom<&str> #[derive(strum::EnumIter)] // NamedChain::iter #[derive(strum::EnumCount)] // NamedChain::COUNT