Skip to content

Commit 6de4bdf

Browse files
lukasluegxFrednet
andcommitted
Fix label not starting with lcase-letter
Co-authored-by: Fridtjof Stoldt <[email protected]>
1 parent 0428f0d commit 6de4bdf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/if_let_mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for IfLetMutex {
6464
let diag = |diag: &mut Diagnostic| {
6565
diag.span_label(
6666
op_mutex.span,
67-
"This Mutex will remain locked for the entire `if let`-block...",
67+
"this Mutex will remain locked for the entire `if let`-block...",
6868
);
6969
diag.span_label(
7070
arm_mutex.span,

tests/ui/if_let_mutex.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
22
--> $DIR/if_let_mutex.rs:10:5
33
|
44
LL | if let Err(locked) = m.lock() {
5-
| ^ - This Mutex will remain locked for the entire `if let`-block...
5+
| ^ - this Mutex will remain locked for the entire `if let`-block...
66
| _____|
77
| |
88
LL | | do_stuff(locked);
@@ -20,7 +20,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
2020
--> $DIR/if_let_mutex.rs:22:5
2121
|
2222
LL | if let Some(locked) = m.lock().unwrap().deref() {
23-
| ^ - This Mutex will remain locked for the entire `if let`-block...
23+
| ^ - this Mutex will remain locked for the entire `if let`-block...
2424
| _____|
2525
| |
2626
LL | | do_stuff(locked);
@@ -37,7 +37,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
3737
--> $DIR/if_let_mutex.rs:43:5
3838
|
3939
LL | if let Ok(i) = mutex.lock() {
40-
| ^ ----- This Mutex will remain locked for the entire `if let`-block...
40+
| ^ ----- this Mutex will remain locked for the entire `if let`-block...
4141
| _____|
4242
| |
4343
LL | | do_stuff(i);

0 commit comments

Comments
 (0)