Skip to content

Commit

Permalink
Make prettier happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 15, 2023
1 parent fe396ec commit 6cc1c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/general/incorrect_matches_operation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Checks for inefficient or incorrect use of the `matches!` macro.
Examples of inefficient or boiler plate uses:
- `matches!(obj, case1) | matches!(obj, case2)`
- `matches!(obj, case1) || matches!(obj, case2)`

Examples of incorrect uses (the condition is probably always false):
- `matches!(obj, case1) & matches!(obj, case2)`
- `matches!(obj, case1) && matches!(obj, case2)`
Expand Down
1 change: 1 addition & 0 deletions examples/general/incorrect_matches_operation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dylint_linting::declare_pre_expansion_lint! {
/// Examples of inefficient or boiler plate uses:
/// - `matches!(obj, case1) | matches!(obj, case2)`
/// - `matches!(obj, case1) || matches!(obj, case2)`
///
/// Examples of incorrect uses (the condition is probably always false):
/// - `matches!(obj, case1) & matches!(obj, case2)`
/// - `matches!(obj, case1) && matches!(obj, case2)`
Expand Down

0 comments on commit 6cc1c1c

Please sign in to comment.