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

Set array path problem #68

Closed
XX opened this issue Apr 8, 2018 · 0 comments
Closed

Set array path problem #68

XX opened this issue Apr 8, 2018 · 0 comments

Comments

@XX
Copy link
Contributor

XX commented Apr 8, 2018

Follow code is not work:

let mut c = Config::default();
c.set("items[0].name", "Ivan").unwrap();
assert_eq!(c.get("items[0].name").ok(), Some("Ivan".to_string()));

This produce a error:

---- test_set_arr_path stdout ----
        thread 'test_set_arr_path' panicked at 'assertion failed: `(left == right)`
  left: `None`,
 right: `Some("Ivan")`', tests/set.rs:48:5

I fixed it in my PR: #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants