Skip to content

Commit 630be51

Browse files
committed
borrow -> reference
1 parent 308c930 commit 630be51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/needless_deref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl LateLintPass<'_> for NeedlessDeref {
6767
cx,
6868
NEEDLESS_DEREF,
6969
e.span,
70-
"deref on an immutable borrow",
70+
"deref on an immutable reference",
7171
|diag| {
7272
diag.help(
7373
&format!(

tests/ui/needless_deref.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: deref on an immutable borrow
1+
error: deref on an immutable reference
22
--> $DIR/needless_deref.rs:6:18
33
|
44
LL | let _b = &*a;
@@ -8,7 +8,7 @@ LL | let _b = &*a;
88
= help: consider using `&**a` if you would like to deref
99
= help: consider using `a` if you would like to reborrow
1010

11-
error: deref on an immutable borrow
11+
error: deref on an immutable reference
1212
--> $DIR/needless_deref.rs:9:23
1313
|
1414
LL | let a: &str = &*s;

0 commit comments

Comments
 (0)