Skip to content

Commit

Permalink
Bump strum from 0.22 -> 0.23 (paritytech#10758)
Browse files Browse the repository at this point in the history
  • Loading branch information
athei authored Jan 31, 2022
1 parent 4b48e8e commit 2c45496
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 34 deletions.
32 changes: 5 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/beefy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ beefy-primitives = { version = "4.0.0-dev", path = "../../primitives/beefy" }
sp-tracing = { version = "4.0.0", path = "../../primitives/tracing" }
sc-network-test = { version = "0.8.0", path = "../network/test" }

strum = { version = "0.22", features = ["derive"] }
strum = { version = "0.23", features = ["derive"] }
8 changes: 5 additions & 3 deletions frame/election-provider-multi-phase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions frame/election-provider-multi-phase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion primitives/keyring/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ targets = ["x86_64-unknown-linux-gnu"]
sp-core = { version = "4.1.0-dev", path = "../core" }
sp-runtime = { version = "4.1.0-dev", path = "../runtime" }
lazy_static = "1.4.0"
strum = { version = "0.22.0", features = ["derive"] }
strum = { version = "0.23.0", features = ["derive"] }

0 comments on commit 2c45496

Please sign in to comment.