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

Added alternative redactions syntax for rustfmt #428

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

mitsuhiko
Copy link
Owner

This adds a new optional redactions syntax for rustfmt support:

#[cfg(feature = "yaml")]
#[test]
fn test_with_random_value_and_trailing_comma_match() {
    assert_yaml_snapshot!(
        &User {
            id: 11,
            username: "john_doe".to_string(),
            email: Email("john@example.com".to_string()),
            extra: "".to_string(),
        },
        match .. {
            ".id" => "[id]",
        }
    );
}

Fixes #419

@mitsuhiko mitsuhiko merged commit 7b85f72 into master Nov 16, 2023
@mitsuhiko mitsuhiko deleted the alt-redactions-syntax branch November 16, 2023 22:10
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 this pull request may close these issues.

make redactions syntax support rustfmt
1 participant