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

Document the syntax for multiple redactions #12

Closed
glennpratt opened this issue Jan 31, 2019 · 1 comment
Closed

Document the syntax for multiple redactions #12

glennpratt opened this issue Jan 31, 2019 · 1 comment

Comments

@glennpratt
Copy link

I could not figure out how to have multiple redactions:

        assert_json_snapshot_matches!(
            "oci_json",
            &actual,
            { ".process.user.uid" => 42, ".process.user.gid" => 42, }
        );
error: expected expression, found `,`
   --> src/container/contained_v2.rs:407:14
    |
407 |             &actual,
    |              ^ expected expression

error: aborting due to previous error

If possible, could that be added to the README?

@glennpratt
Copy link
Author

The thing I was missing was the trailing comma. Which I should have known because I've done that macro exercise somewhere along the way.

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

1 participant