Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 2c45496

Browse files
authored
Bump strum from 0.22 -> 0.23 (#10758)
1 parent 4b48e8e commit 2c45496

File tree

5 files changed

+14
-34
lines changed

5 files changed

+14
-34
lines changed

Cargo.lock

Lines changed: 5 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/beefy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ beefy-primitives = { version = "4.0.0-dev", path = "../../primitives/beefy" }
3939
sp-tracing = { version = "4.0.0", path = "../../primitives/tracing" }
4040
sc-network-test = { version = "0.8.0", path = "../network/test" }
4141

42-
strum = { version = "0.22", features = ["derive"] }
42+
strum = { version = "0.23", features = ["derive"] }

frame/election-provider-multi-phase/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ rand = { version = "0.7.3", default-features = false, optional = true, features
3737
"alloc",
3838
"small_rng",
3939
] }
40-
strum = { optional = true, version = "0.22.0" }
41-
strum_macros = { optional = true, version = "0.23.1" }
40+
strum = { optional = true, default-features = false, version = "0.23.0", features = ["derive"] }
4241

4342
[dev-dependencies]
4443
parking_lot = "0.11.2"
@@ -70,12 +69,15 @@ std = [
7069
"sp-arithmetic/std",
7170
"frame-election-provider-support/std",
7271
"log/std",
72+
73+
"frame-benchmarking/std",
74+
"rand/std",
75+
"strum/std",
7376
]
7477
runtime-benchmarks = [
7578
"frame-benchmarking/runtime-benchmarks",
7679
"frame-election-provider-support/runtime-benchmarks",
7780
"rand",
7881
"strum",
79-
"strum_macros",
8082
]
8183
try-runtime = ["frame-support/try-runtime"]

frame/election-provider-multi-phase/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ pub struct SolutionOrSnapshotSize {
488488
///
489489
/// Note that this is different from [`pallet::Error`].
490490
#[derive(frame_support::DebugNoBound)]
491-
#[cfg_attr(feature = "runtime-benchmarks", derive(strum_macros::IntoStaticStr))]
491+
#[cfg_attr(feature = "runtime-benchmarks", derive(strum::IntoStaticStr))]
492492
pub enum ElectionError<T: Config> {
493493
/// An error happened in the feasibility check sub-system.
494494
Feasibility(FeasibilityError),
@@ -533,7 +533,7 @@ impl<T: Config> From<unsigned::MinerError<T>> for ElectionError<T> {
533533

534534
/// Errors that can happen in the feasibility check.
535535
#[derive(Debug, Eq, PartialEq)]
536-
#[cfg_attr(feature = "runtime-benchmarks", derive(strum_macros::IntoStaticStr))]
536+
#[cfg_attr(feature = "runtime-benchmarks", derive(strum::IntoStaticStr))]
537537
pub enum FeasibilityError {
538538
/// Wrong number of winners presented.
539539
WrongWinnerCount,

primitives/keyring/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ targets = ["x86_64-unknown-linux-gnu"]
1818
sp-core = { version = "4.1.0-dev", path = "../core" }
1919
sp-runtime = { version = "4.1.0-dev", path = "../runtime" }
2020
lazy_static = "1.4.0"
21-
strum = { version = "0.22.0", features = ["derive"] }
21+
strum = { version = "0.23.0", features = ["derive"] }

0 commit comments

Comments
 (0)