Skip to content

Commit

Permalink
Fix label not starting with lcase-letter
Browse files Browse the repository at this point in the history
Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
  • Loading branch information
lukaslueg and xFrednet committed Aug 15, 2022
1 parent 0428f0d commit 6de4bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/if_let_mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/if_let_mutex.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 6de4bdf

Please sign in to comment.