eb3970285b
In order to switch `clippy::uninlined_format_args` from pedantic to style, all existing tests must not raise a warning. I did not want to change the actual tests, so this is a relatively minor change that: * add `#![allow(clippy::uninlined_format_args)]` where needed * normalizes all allow/deny/warn attributes * all allow attributes are grouped together * sorted alphabetically * the `clippy::*` attributes are listed separate from the other ones. * deny and warn attributes are listed before the allowed ones changelog: none
57 lines
2.5 KiB
Plaintext
57 lines
2.5 KiB
Plaintext
error: calling `std::string::String::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:15:22
|
|
|
|
|
LL | let s1: String = Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/default_trait_access.rs:3:9
|
|
|
|
|
LL | #![deny(clippy::default_trait_access)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:19:22
|
|
|
|
|
LL | let s3: String = D2::default();
|
|
| ^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:21:22
|
|
|
|
|
LL | let s4: String = std::default::Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
error: calling `std::string::String::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:25:22
|
|
|
|
|
LL | let s6: String = default::Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::string::String::default()`
|
|
|
|
error: calling `GenericDerivedDefault::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:35:46
|
|
|
|
|
LL | let s11: GenericDerivedDefault<String> = Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()`
|
|
|
|
error: calling `TupleDerivedDefault::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:41:36
|
|
|
|
|
LL | let s14: TupleDerivedDefault = Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleDerivedDefault::default()`
|
|
|
|
error: calling `ArrayDerivedDefault::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:43:36
|
|
|
|
|
LL | let s15: ArrayDerivedDefault = Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `ArrayDerivedDefault::default()`
|
|
|
|
error: calling `TupleStructDerivedDefault::default()` is more clear than this expression
|
|
--> $DIR/default_trait_access.rs:47:42
|
|
|
|
|
LL | let s17: TupleStructDerivedDefault = Default::default();
|
|
| ^^^^^^^^^^^^^^^^^^ help: try: `TupleStructDerivedDefault::default()`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|