Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update strum_macros requirement from 0.25 to 0.26 #92

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pywr-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ svgbobdoc = { version = "0.3.0", features = ["enable"] }
polars = { workspace = true }
pyo3 = { workspace = true }
pyo3-polars = { workspace = true }
strum = "0.25"
strum_macros = "0.25"
strum = "0.26"
strum_macros = "0.26"

hdf5 = { workspace = true }
csv = { 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
Loading