Skip to content

Commit

Permalink
Update strum and enable the derive feature
Browse files Browse the repository at this point in the history
Reviewed By: diliop

Differential Revision: D46672815

fbshipit-source-id: e372ab53fd8f71b1011f8e1065c7d0ba38485c7a
  • Loading branch information
zertosh authored and facebook-github-bot committed Jun 13, 2023
1 parent 4a1d71d commit 48ce83a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions compiler/crates/relay-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ pathdiff = "0.2"
regex = "1.6.0"
serde = { version = "1.0.136", features = ["derive", "rc"] }
serde_json = { version = "1.0.79", features = ["float_roundtrip", "unbounded_depth"] }
strum = "0.21"
strum_macros = "0.21"
strum = { version = "0.24", features = ["derive"] }
4 changes: 2 additions & 2 deletions compiler/crates/relay-config/src/typegen_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use indexmap::IndexMap;
use intern::string_key::StringKey;
use serde::Deserialize;
use serde::Serialize;
use strum::EnumIter;
use strum::IntoEnumIterator;
use strum_macros::EnumIter;
type FnvIndexMap<K, V> = IndexMap<K, V, FnvBuildHasher>;

#[derive(
EnumIter,
strum_macros::ToString,
strum::Display,
Debug,
Copy,
Clone,
Expand Down

0 comments on commit 48ce83a

Please sign in to comment.