Skip to content

Commit 8dfbad9

Browse files
committed
bless clippy
1 parent 0867c64 commit 8dfbad9

File tree

205 files changed

+231
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+231
-231
lines changed

tests/ui-toml/await_holding_invalid_type/await_holding_invalid_type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: `std::string::String` may not be held across an `await` point per `clippy
44
LL | let _x = String::from("hello");
55
| ^^
66
|
7-
= note: `-D clippy::await-holding-invalid-type` implied by `-D warnings`
87
= note: strings are bad
8+
= note: `-D clippy::await-holding-invalid-type` implied by `-D warnings`
99

1010
error: `std::net::Ipv4Addr` may not be held across an `await` point per `clippy.toml`
1111
--> $DIR/await_holding_invalid_type.rs:10:9

tests/ui-toml/conf_deprecated_key/conf_deprecated_key.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ error: the function has a cognitive complexity of (3/2)
88
LL | fn cognitive_complexity() {
99
| ^^^^^^^^^^^^^^^^^^^^
1010
|
11-
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
1211
= help: you could split it up into multiple smaller functions
12+
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
1313

1414
error: aborting due to previous error; 2 warnings emitted
1515

tests/ui-toml/expect_used/expect_used.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: used `expect()` on `an Option` value
44
LL | let _ = opt.expect("");
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: `-D clippy::expect-used` implied by `-D warnings`
87
= help: if this value is `None`, it will panic
8+
= note: `-D clippy::expect-used` implied by `-D warnings`
99

1010
error: used `expect()` on `a Result` value
1111
--> $DIR/expect_used.rs:11:13

tests/ui-toml/fn_params_excessive_bools/test.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: more than 1 bools in function parameters
44
LL | fn g(_: bool, _: bool) {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
87
= help: consider refactoring bools into two-variant enums
8+
= note: `-D clippy::fn-params-excessive-bools` implied by `-D warnings`
99

1010
error: aborting due to previous error
1111

tests/ui-toml/large_include_file/large_include_file.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: attempted to include a large file
44
LL | const TOO_BIG_INCLUDE_BYTES: &[u8; 654] = include_bytes!("too_big.txt");
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `-D clippy::large-include-file` implied by `-D warnings`
87
= note: the configuration allows a maximum size of 600 bytes
8+
= note: `-D clippy::large-include-file` implied by `-D warnings`
99
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
1010

1111
error: attempted to include a large file

tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ error: use of irregular braces for `vec!` macro
44
LL | let _ = vec! {1, 2, 3};
55
| ^^^^^^^^^^^^^^
66
|
7-
= note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
87
help: consider writing `vec![1, 2, 3]`
98
--> $DIR/conf_nonstandard_macro_braces.rs:43:13
109
|
1110
LL | let _ = vec! {1, 2, 3};
1211
| ^^^^^^^^^^^^^^
12+
= note: `-D clippy::nonstandard-macro-braces` implied by `-D warnings`
1313

1414
error: use of irregular braces for `format!` macro
1515
--> $DIR/conf_nonstandard_macro_braces.rs:44:13

tests/ui-toml/strict_non_send_fields_in_send_ty/test.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ error: some fields in `NoGeneric` are not safe to be sent to another thread
44
LL | unsafe impl Send for NoGeneric {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: `-D clippy::non-send-fields-in-send-ty` implied by `-D warnings`
87
note: it is not safe to send field `rc_is_not_send` to another thread
98
--> $DIR/test.rs:8:5
109
|
1110
LL | rc_is_not_send: Rc<String>,
1211
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
1312
= help: use a thread-safe type that implements `Send`
13+
= note: `-D clippy::non-send-fields-in-send-ty` implied by `-D warnings`
1414

1515
error: some fields in `MultiField<T>` are not safe to be sent to another thread
1616
--> $DIR/test.rs:19:1

tests/ui-toml/struct_excessive_bools/test.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ LL | | a: bool,
66
LL | | }
77
| |_^
88
|
9-
= note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
109
= help: consider using a state machine or refactoring bools into two-variant enums
10+
= note: `-D clippy::struct-excessive-bools` implied by `-D warnings`
1111

1212
error: aborting due to previous error
1313

tests/ui-toml/unwrap_used/unwrap_used.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ error: used `unwrap()` on `an Option` value
1616
LL | let _ = boxed_slice.get(1).unwrap();
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
|
19-
= note: `-D clippy::unwrap-used` implied by `-D warnings`
2019
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
20+
= note: `-D clippy::unwrap-used` implied by `-D warnings`
2121

2222
error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
2323
--> $DIR/unwrap_used.rs:36:17

tests/ui/absurd-extreme-comparisons.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: this comparison involving the minimum or maximum element for this type co
44
LL | u <= 0;
55
| ^^^^^^
66
|
7-
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
87
= help: because `0` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `u == 0` instead
8+
= note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
99

1010
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
1111
--> $DIR/absurd-extreme-comparisons.rs:15:5

0 commit comments

Comments
 (0)