File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ impl LateLintPass<'_> for NeedlessDeref {
67
67
cx,
68
68
NEEDLESS_DEREF ,
69
69
e. span,
70
- "deref on an immutable borrow " ,
70
+ "deref on an immutable reference " ,
71
71
|diag| {
72
72
diag. help(
73
73
& format!(
Original file line number Diff line number Diff line change 1
- error: deref on an immutable borrow
1
+ error: deref on an immutable reference
2
2
--> $DIR/needless_deref.rs:6:18
3
3
|
4
4
LL | let _b = &*a;
@@ -8,7 +8,7 @@ LL | let _b = &*a;
8
8
= help: consider using `&**a` if you would like to deref
9
9
= help: consider using `a` if you would like to reborrow
10
10
11
- error: deref on an immutable borrow
11
+ error: deref on an immutable reference
12
12
--> $DIR/needless_deref.rs:9:23
13
13
|
14
14
LL | let a: &str = &*s;
You can’t perform that action at this time.
0 commit comments