Skip to content

Commit

Permalink
reworded some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 7, 2024
1 parent 6973bac commit 104b00c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lints/constructible_struct_changed_type.ron
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ More info: https://github.com/obi1kenobi/cargo-semver-checks/issues/297
struct_type @output
# If the struct is non-exhaustive, it can't be constructed using a literal.
# This is `struct_marked_non_exhaustive_changed_type` instead
# A struct having this is breaking via struct_marked_non_exhaustive_changed_type instead.
attrs @filter(op: "not_contains", value: ["$non_exhaustive"])
# The struct must not have any fields.
Expand Down
4 changes: 2 additions & 2 deletions src/lints/struct_with_no_pub_fields_changed_type.ron
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ More info: https://github.com/obi1kenobi/cargo-semver-checks/issues/954
# Ensure the struct does have non-pub fields
#
# This prevents overlap with constructible_struct_changed_type, but doing this requires
# struct_marked_non_exhaustive_changed_type instead (merging into this lint is not currently
# possible due the query engine limitation of not having OR-conditions)
# struct_marked_non_exhaustive_changed_type instead. Merging into this lint is currently
# impossible due the query engine limitation of not having OR-conditions.
field @fold @transform(op: "count") @filter(op: ">", value: ["$zero"])
importable_path {
Expand Down

0 comments on commit 104b00c

Please sign in to comment.