|
1 | 1 | error: calling `std::string::String::default()` is more clear than this expression
|
2 |
| - --> $DIR/default_trait_access.rs:11:22 |
| 2 | + --> $DIR/default_trait_access.rs:15:22 |
3 | 3 | |
|
4 | 4 | LL | let s1: String = Default::default();
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
6 | 6 | |
|
7 | 7 | note: the lint level is defined here
|
8 |
| - --> $DIR/default_trait_access.rs:4:9 |
| 8 | + --> $DIR/default_trait_access.rs:5:9 |
9 | 9 | |
|
10 | 10 | LL | #![deny(clippy::default_trait_access)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 | 13 | error: calling `std::string::String::default()` is more clear than this expression
|
14 |
| - --> $DIR/default_trait_access.rs:15:22 |
| 14 | + --> $DIR/default_trait_access.rs:19:22 |
15 | 15 | |
|
16 | 16 | LL | let s3: String = D2::default();
|
17 | 17 | | ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
18 | 18 |
|
19 | 19 | error: calling `std::string::String::default()` is more clear than this expression
|
20 |
| - --> $DIR/default_trait_access.rs:17:22 |
| 20 | + --> $DIR/default_trait_access.rs:21:22 |
21 | 21 | |
|
22 | 22 | LL | let s4: String = std::default::Default::default();
|
23 | 23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
24 | 24 |
|
25 | 25 | error: calling `std::string::String::default()` is more clear than this expression
|
26 |
| - --> $DIR/default_trait_access.rs:21:22 |
| 26 | + --> $DIR/default_trait_access.rs:25:22 |
27 | 27 | |
|
28 | 28 | LL | let s6: String = default::Default::default();
|
29 | 29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
30 | 30 |
|
31 | 31 | error: calling `GenericDerivedDefault::default()` is more clear than this expression
|
32 |
| - --> $DIR/default_trait_access.rs:31:46 |
| 32 | + --> $DIR/default_trait_access.rs:35:46 |
33 | 33 | |
|
34 | 34 | LL | let s11: GenericDerivedDefault<String> = Default::default();
|
35 | 35 | | ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()`
|
36 | 36 |
|
37 | 37 | error: calling `TupleDerivedDefault::default()` is more clear than this expression
|
38 |
| - --> $DIR/default_trait_access.rs:37:36 |
| 38 | + --> $DIR/default_trait_access.rs:41:36 |
39 | 39 | |
|
40 | 40 | LL | let s14: TupleDerivedDefault = Default::default();
|
41 | 41 | | ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
|
42 | 42 |
|
43 | 43 | error: calling `ArrayDerivedDefault::default()` is more clear than this expression
|
44 |
| - --> $DIR/default_trait_access.rs:39:36 |
| 44 | + --> $DIR/default_trait_access.rs:43:36 |
45 | 45 | |
|
46 | 46 | LL | let s15: ArrayDerivedDefault = Default::default();
|
47 | 47 | | ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
|
48 | 48 |
|
49 | 49 | error: calling `TupleStructDerivedDefault::default()` is more clear than this expression
|
50 |
| - --> $DIR/default_trait_access.rs:43:42 |
| 50 | + --> $DIR/default_trait_access.rs:47:42 |
51 | 51 | |
|
52 | 52 | LL | let s17: TupleStructDerivedDefault = Default::default();
|
53 | 53 | | ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
|
|
0 commit comments