about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlukaslueg <lukas.lueg@gmail.com>2022-08-15 20:13:31 +0200
committerLukas Lueg <lukas.lueg@gmail.com>2022-08-15 20:24:30 +0200
commit6de4bdfa8e36bcf5c814b0d43afc1cefb0630533 (patch)
tree0ce63e2ed2f27ffd1158e166bda950bad9159ef6
parent0428f0d234319649ce7b7d1571ec169d58a6642e (diff)
downloadrust-6de4bdfa8e36bcf5c814b0d43afc1cefb0630533.tar.gz
rust-6de4bdfa8e36bcf5c814b0d43afc1cefb0630533.zip
Fix label not starting with lcase-letter
Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
-rw-r--r--clippy_lints/src/if_let_mutex.rs2
-rw-r--r--tests/ui/if_let_mutex.stderr6
2 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/if_let_mutex.rs b/clippy_lints/src/if_let_mutex.rs
index b6f9fefdee9..4d703d691ac 100644
--- a/clippy_lints/src/if_let_mutex.rs
+++ b/clippy_lints/src/if_let_mutex.rs
@@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for IfLetMutex {
                     let diag = |diag: &mut Diagnostic| {
                         diag.span_label(
                             op_mutex.span,
-                            "This Mutex will remain locked for the entire `if let`-block...",
+                            "this Mutex will remain locked for the entire `if let`-block...",
                         );
                         diag.span_label(
                             arm_mutex.span,
diff --git a/tests/ui/if_let_mutex.stderr b/tests/ui/if_let_mutex.stderr
index 6dbfc4be412..8a4d5dbac59 100644
--- a/tests/ui/if_let_mutex.stderr
+++ b/tests/ui/if_let_mutex.stderr
@@ -2,7 +2,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
   --> $DIR/if_let_mutex.rs:10:5
    |
 LL |       if let Err(locked) = m.lock() {
-   |       ^                    - This Mutex will remain locked for the entire `if let`-block...
+   |       ^                    - this Mutex will remain locked for the entire `if let`-block...
    |  _____|
    | |
 LL | |         do_stuff(locked);
@@ -20,7 +20,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
   --> $DIR/if_let_mutex.rs:22:5
    |
 LL |       if let Some(locked) = m.lock().unwrap().deref() {
-   |       ^                     - This Mutex will remain locked for the entire `if let`-block...
+   |       ^                     - this Mutex will remain locked for the entire `if let`-block...
    |  _____|
    | |
 LL | |         do_stuff(locked);
@@ -37,7 +37,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
   --> $DIR/if_let_mutex.rs:43:5
    |
 LL |       if let Ok(i) = mutex.lock() {
-   |       ^              ----- This Mutex will remain locked for the entire `if let`-block...
+   |       ^              ----- this Mutex will remain locked for the entire `if let`-block...
    |  _____|
    | |
 LL | |         do_stuff(i);