Skip to content

Commit

Permalink
fix: Fix deprecated macro name in strum v0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
jetuk committed Jan 30, 2024
1 parent 4cb6d79 commit a752b0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pywr-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ svgbobdoc = { version = "0.3.0", features = ["enable"] }
polars = { workspace = true }
pyo3 = { workspace = true }
pyo3-polars = { workspace = true }
strum = "0.25"
strum = "0.26"
strum_macros = "0.26"

hdf5 = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions pywr-schema/src/nodes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub use river_gauge::RiverGaugeNode;
pub use river_split_with_gauge::RiverSplitWithGaugeNode;
use std::collections::HashMap;
use std::path::Path;
use strum_macros::{Display, EnumDiscriminants, EnumString, EnumVariantNames, IntoStaticStr};
use strum_macros::{Display, EnumDiscriminants, EnumString, IntoStaticStr, VariantNames};
pub use virtual_storage::VirtualStorageNode;
pub use water_treatment_works::WaterTreatmentWorks;

Expand Down Expand Up @@ -215,7 +215,7 @@ impl NodeBuilder {

#[derive(serde::Deserialize, serde::Serialize, Clone, EnumDiscriminants)]
#[serde(tag = "type")]
#[strum_discriminants(derive(Display, IntoStaticStr, EnumString, EnumVariantNames))]
#[strum_discriminants(derive(Display, IntoStaticStr, EnumString, VariantNames))]
// This creates a separate enum called `NodeType` that is available in this module.
#[strum_discriminants(name(NodeType))]
pub enum Node {
Expand Down

0 comments on commit a752b0c

Please sign in to comment.