1
1
error: explicit `deref` method call
2
- --> tests/ui/explicit_deref_methods.rs:55 :19
2
+ --> tests/ui/explicit_deref_methods.rs:58 :19
3
3
|
4
4
LL | let b: &str = a.deref();
5
5
| ^^^^^^^^^ help: try: `&*a`
@@ -8,73 +8,73 @@ LL | let b: &str = a.deref();
8
8
= help: to override `-D warnings` add `#[allow(clippy::explicit_deref_methods)]`
9
9
10
10
error: explicit `deref_mut` method call
11
- --> tests/ui/explicit_deref_methods.rs:58 :23
11
+ --> tests/ui/explicit_deref_methods.rs:61 :23
12
12
|
13
13
LL | let b: &mut str = a.deref_mut();
14
14
| ^^^^^^^^^^^^^ help: try: `&mut **a`
15
15
16
16
error: explicit `deref` method call
17
- --> tests/ui/explicit_deref_methods.rs:62 :39
17
+ --> tests/ui/explicit_deref_methods.rs:65 :39
18
18
|
19
19
LL | let b: String = format!("{}, {}", a.deref(), a.deref());
20
20
| ^^^^^^^^^ help: try: `&*a`
21
21
22
22
error: explicit `deref` method call
23
- --> tests/ui/explicit_deref_methods.rs:62 :50
23
+ --> tests/ui/explicit_deref_methods.rs:65 :50
24
24
|
25
25
LL | let b: String = format!("{}, {}", a.deref(), a.deref());
26
26
| ^^^^^^^^^ help: try: `&*a`
27
27
28
28
error: explicit `deref` method call
29
- --> tests/ui/explicit_deref_methods.rs:66 :20
29
+ --> tests/ui/explicit_deref_methods.rs:69 :20
30
30
|
31
31
LL | println!("{}", a.deref());
32
32
| ^^^^^^^^^ help: try: `&*a`
33
33
34
34
error: explicit `deref` method call
35
- --> tests/ui/explicit_deref_methods.rs:70 :11
35
+ --> tests/ui/explicit_deref_methods.rs:73 :11
36
36
|
37
37
LL | match a.deref() {
38
38
| ^^^^^^^^^ help: try: `&*a`
39
39
40
40
error: explicit `deref` method call
41
- --> tests/ui/explicit_deref_methods.rs:75 :28
41
+ --> tests/ui/explicit_deref_methods.rs:78 :28
42
42
|
43
43
LL | let b: String = concat(a.deref());
44
44
| ^^^^^^^^^ help: try: `&*a`
45
45
46
46
error: explicit `deref` method call
47
- --> tests/ui/explicit_deref_methods.rs:78 :13
47
+ --> tests/ui/explicit_deref_methods.rs:81 :13
48
48
|
49
49
LL | let b = just_return(a).deref();
50
50
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)`
51
51
52
52
error: explicit `deref` method call
53
- --> tests/ui/explicit_deref_methods.rs:81 :28
53
+ --> tests/ui/explicit_deref_methods.rs:84 :28
54
54
|
55
55
LL | let b: String = concat(just_return(a).deref());
56
56
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)`
57
57
58
58
error: explicit `deref` method call
59
- --> tests/ui/explicit_deref_methods.rs:121 :31
59
+ --> tests/ui/explicit_deref_methods.rs:124 :31
60
60
|
61
61
LL | let b: &str = expr_deref!(a.deref());
62
62
| ^^^^^^^^^ help: try: `&*a`
63
63
64
64
error: explicit `deref` method call
65
- --> tests/ui/explicit_deref_methods.rs:139 :14
65
+ --> tests/ui/explicit_deref_methods.rs:154 :14
66
66
|
67
67
LL | let _ = &Deref::deref(&"foo");
68
68
| ^^^^^^^^^^^^^^^^^^^^ help: try: `*&"foo"`
69
69
70
70
error: explicit `deref_mut` method call
71
- --> tests/ui/explicit_deref_methods.rs:141 :14
71
+ --> tests/ui/explicit_deref_methods.rs:156 :14
72
72
|
73
73
LL | let _ = &DerefMut::deref_mut(&mut x);
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut **&mut x`
75
75
76
76
error: explicit `deref_mut` method call
77
- --> tests/ui/explicit_deref_methods.rs:142 :14
77
+ --> tests/ui/explicit_deref_methods.rs:157 :14
78
78
|
79
79
LL | let _ = &DerefMut::deref_mut((&mut &mut x).deref_mut());
80
80
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut ***(&mut &mut x)`
0 commit comments