|
1 | 1 | error: explicit `deref` method call |
2 | | - --> $DIR/explicit_deref_methods.rs:54:19 |
| 2 | + --> $DIR/explicit_deref_methods.rs:55:19 |
3 | 3 | | |
4 | 4 | LL | let b: &str = a.deref(); |
5 | 5 | | ^^^^^^^^^ help: try: `&*a` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::explicit-deref-methods` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: explicit `deref_mut` method call |
10 | | - --> $DIR/explicit_deref_methods.rs:56:23 |
| 10 | + --> $DIR/explicit_deref_methods.rs:57:23 |
11 | 11 | | |
12 | 12 | LL | let b: &mut str = a.deref_mut(); |
13 | 13 | | ^^^^^^^^^^^^^ help: try: `&mut **a` |
14 | 14 |
|
15 | 15 | error: explicit `deref` method call |
16 | | - --> $DIR/explicit_deref_methods.rs:59:39 |
| 16 | + --> $DIR/explicit_deref_methods.rs:60:39 |
17 | 17 | | |
18 | 18 | LL | let b: String = format!("{}, {}", a.deref(), a.deref()); |
19 | 19 | | ^^^^^^^^^ help: try: `&*a` |
20 | 20 |
|
21 | 21 | error: explicit `deref` method call |
22 | | - --> $DIR/explicit_deref_methods.rs:59:50 |
| 22 | + --> $DIR/explicit_deref_methods.rs:60:50 |
23 | 23 | | |
24 | 24 | LL | let b: String = format!("{}, {}", a.deref(), a.deref()); |
25 | 25 | | ^^^^^^^^^ help: try: `&*a` |
26 | 26 |
|
27 | 27 | error: explicit `deref` method call |
28 | | - --> $DIR/explicit_deref_methods.rs:61:20 |
| 28 | + --> $DIR/explicit_deref_methods.rs:62:20 |
29 | 29 | | |
30 | 30 | LL | println!("{}", a.deref()); |
31 | 31 | | ^^^^^^^^^ help: try: `&*a` |
32 | 32 |
|
33 | 33 | error: explicit `deref` method call |
34 | | - --> $DIR/explicit_deref_methods.rs:64:11 |
| 34 | + --> $DIR/explicit_deref_methods.rs:65:11 |
35 | 35 | | |
36 | 36 | LL | match a.deref() { |
37 | 37 | | ^^^^^^^^^ help: try: `&*a` |
38 | 38 |
|
39 | 39 | error: explicit `deref` method call |
40 | | - --> $DIR/explicit_deref_methods.rs:68:28 |
| 40 | + --> $DIR/explicit_deref_methods.rs:69:28 |
41 | 41 | | |
42 | 42 | LL | let b: String = concat(a.deref()); |
43 | 43 | | ^^^^^^^^^ help: try: `&*a` |
44 | 44 |
|
45 | 45 | error: explicit `deref` method call |
46 | | - --> $DIR/explicit_deref_methods.rs:70:13 |
| 46 | + --> $DIR/explicit_deref_methods.rs:71:13 |
47 | 47 | | |
48 | 48 | LL | let b = just_return(a).deref(); |
49 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)` |
50 | 50 |
|
51 | 51 | error: explicit `deref` method call |
52 | | - --> $DIR/explicit_deref_methods.rs:72:28 |
| 52 | + --> $DIR/explicit_deref_methods.rs:73:28 |
53 | 53 | | |
54 | 54 | LL | let b: String = concat(just_return(a).deref()); |
55 | 55 | | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)` |
56 | 56 |
|
57 | 57 | error: explicit `deref` method call |
58 | | - --> $DIR/explicit_deref_methods.rs:74:19 |
| 58 | + --> $DIR/explicit_deref_methods.rs:75:19 |
59 | 59 | | |
60 | 60 | LL | let b: &str = a.deref().deref(); |
61 | 61 | | ^^^^^^^^^^^^^^^^^ help: try: `&**a` |
62 | 62 |
|
63 | 63 | error: explicit `deref` method call |
64 | | - --> $DIR/explicit_deref_methods.rs:77:13 |
| 64 | + --> $DIR/explicit_deref_methods.rs:78:13 |
65 | 65 | | |
66 | 66 | LL | let b = opt_a.unwrap().deref(); |
67 | 67 | | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*opt_a.unwrap()` |
68 | 68 |
|
69 | 69 | error: explicit `deref` method call |
70 | | - --> $DIR/explicit_deref_methods.rs:114:31 |
| 70 | + --> $DIR/explicit_deref_methods.rs:115:31 |
71 | 71 | | |
72 | 72 | LL | let b: &str = expr_deref!(a.deref()); |
73 | 73 | | ^^^^^^^^^ help: try: `&*a` |
|
0 commit comments