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

implicit hash map #24

Closed
ModProg opened this issue Oct 21, 2024 · 0 comments · Fixed by #26
Closed

implicit hash map #24

ModProg opened this issue Oct 21, 2024 · 0 comments · Fixed by #26

Comments

@ModProg
Copy link
Collaborator

ModProg commented Oct 21, 2024

Implicit maps should probably work for HashMaps.

Testcase for src/tests/serde.rs:

#[test]
fn implicit_hash_map() {
    roundtrip_implicit_map(
        &HashMap::from([(String::from("Hello"), 1), (String::from("World"), 2)]),
        "\"Hello\": 1\n\"World\": 2",
    );
}
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

Successfully merging a pull request may close this issue.

1 participant