File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for IfLetMutex {
64
64
let diag = |diag : & mut Diagnostic | {
65
65
diag. span_label (
66
66
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..." ,
68
68
) ;
69
69
diag. span_label (
70
70
arm_mutex. span ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
2
2
--> $DIR/if_let_mutex.rs:10:5
3
3
|
4
4
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...
6
6
| _____|
7
7
| |
8
8
LL | | do_stuff(locked);
@@ -20,7 +20,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
20
20
--> $DIR/if_let_mutex.rs:22:5
21
21
|
22
22
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...
24
24
| _____|
25
25
| |
26
26
LL | | do_stuff(locked);
@@ -37,7 +37,7 @@ error: calling `Mutex::lock` inside the scope of another `Mutex::lock` causes a
37
37
--> $DIR/if_let_mutex.rs:43:5
38
38
|
39
39
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...
41
41
| _____|
42
42
| |
43
43
LL | | do_stuff(i);
You can’t perform that action at this time.
0 commit comments