Skip to content

Commit

Permalink
fixed a typo and reworded the description
Browse files Browse the repository at this point in the history
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
  • Loading branch information
CommanderStorm and obi1kenobi authored Oct 6, 2024
1 parent 938a06a commit f1dfda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lints/struct_with_no_pub_fields_changed.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SemverQuery(
reference_link: Some("https://internals.rust-lang.org/t/rest-patterns-foo-should-match-non-struct-types/21607"),
reference: Some(
r#"\
Even if a structs does not expose pub fields, pattern matching like `matches!(value, Example { .. })` is accessible outside their defining crate. \
Changing such a struct to make it an enum or union will break this pattern match, as their syntax is different.
Even if a struct does not expose pub fields, pattern matching like `matches!(value, Example { .. })` is allowed outside the struct's own crate. \
Changing such a struct into an enum or union will break such pattern matching.
More info: https://github.com/obi1kenobi/cargo-semver-checks/issues/954
"#
Expand Down

0 comments on commit f1dfda6

Please sign in to comment.