Bump strum from 0.22 -> 0.23 (#10758)

This commit is contained in:
Alexander Theißen
2022-01-31 21:04:12 +01:00
committed by GitHub
parent f3168c3fa0
commit 0bfbf5a89f
5 changed files with 14 additions and 34 deletions
@@ -37,8 +37,7 @@ rand = { version = "0.7.3", default-features = false, optional = true, features
"alloc",
"small_rng",
] }
strum = { optional = true, version = "0.22.0" }
strum_macros = { optional = true, version = "0.23.1" }
strum = { optional = true, default-features = false, version = "0.23.0", features = ["derive"] }
[dev-dependencies]
parking_lot = "0.11.2"
@@ -70,12 +69,15 @@ std = [
"sp-arithmetic/std",
"frame-election-provider-support/std",
"log/std",
"frame-benchmarking/std",
"rand/std",
"strum/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"rand",
"strum",
"strum_macros",
]
try-runtime = ["frame-support/try-runtime"]
@@ -488,7 +488,7 @@ pub struct SolutionOrSnapshotSize {
///
/// Note that this is different from [`pallet::Error`].
#[derive(frame_support::DebugNoBound)]
#[cfg_attr(feature = "runtime-benchmarks", derive(strum_macros::IntoStaticStr))]
#[cfg_attr(feature = "runtime-benchmarks", derive(strum::IntoStaticStr))]
pub enum ElectionError<T: Config> {
/// An error happened in the feasibility check sub-system.
Feasibility(FeasibilityError),
@@ -533,7 +533,7 @@ impl<T: Config> From<unsigned::MinerError<T>> for ElectionError<T> {
/// Errors that can happen in the feasibility check.
#[derive(Debug, Eq, PartialEq)]
#[cfg_attr(feature = "runtime-benchmarks", derive(strum_macros::IntoStaticStr))]
#[cfg_attr(feature = "runtime-benchmarks", derive(strum::IntoStaticStr))]
pub enum FeasibilityError {
/// Wrong number of winners presented.
WrongWinnerCount,