From 6cc1c1c12d3942db88d5cac12047178bc944d319 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Sun, 15 Oct 2023 00:57:07 +0000 Subject: [PATCH] Make prettier happy --- examples/general/incorrect_matches_operation/README.md | 1 + examples/general/incorrect_matches_operation/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/general/incorrect_matches_operation/README.md b/examples/general/incorrect_matches_operation/README.md index ab10021ba..dc33ddbe7 100644 --- a/examples/general/incorrect_matches_operation/README.md +++ b/examples/general/incorrect_matches_operation/README.md @@ -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)` diff --git a/examples/general/incorrect_matches_operation/src/lib.rs b/examples/general/incorrect_matches_operation/src/lib.rs index 2fe35f5d4..1e5eb5464 100644 --- a/examples/general/incorrect_matches_operation/src/lib.rs +++ b/examples/general/incorrect_matches_operation/src/lib.rs @@ -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)`