You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use #[serde(rename_all = "camelCase")] attribute, envy seems to unable to find target variable.
I tried another case such as SCREAMING_SNAKE_CASE but it also fails.
#[derive(Deserialize,PartialEq,Debug)]#[serde(rename_all = "camelCase")]structBar{hoge_hoge:String}#[test]fndeserialize_with_rename_all(){let data = vec![(String::from("hogeHoge"), String::from("yey"))];// it returns "Err(MissingValue("hogeHoge"))"from_iter::<_,Bar>(data);}
🤔 Expected Behavior
envy should find corresponding environmental variable.
👟 Steps to reproduce
#[derive(Deserialize,PartialEq,Debug)]#[serde(rename_all = "camelCase")]structBar{hoge_hoge:String}#[test]fndeserialize_with_rename_all(){let data = vec![(String::from("hogeHoge"), String::from("yey"))];// it returns "Err(MissingValue("hogeHoge"))"from_iter::<_,Bar>(data);}
🌍 Your environment
macOS 10.15.6
rustc 1.47.0
envy version: 0.4.2
The text was updated successfully, but these errors were encountered:
🐛 Bug description
When I use
#[serde(rename_all = "camelCase")]
attribute, envy seems to unable to find target variable.I tried another case such as
SCREAMING_SNAKE_CASE
but it also fails.🤔 Expected Behavior
envy should find corresponding environmental variable.
👟 Steps to reproduce
🌍 Your environment
macOS 10.15.6
rustc 1.47.0
envy version: 0.4.2
The text was updated successfully, but these errors were encountered: