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