forked from rust-lang/rust-clippy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert global fmt config and use
rustfmt::skip
- Loading branch information
Showing
3 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) | ||
--> $DIR/issue_4266.rs:5:1 | ||
--> $DIR/issue_4266.rs:8:5 | ||
| | ||
LL | async fn sink1<'a>(_: &'a str) {} // lint | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | async fn sink1<'a>(_: &'a str) {} // lint | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::needless-lifetimes` implied by `-D warnings` | ||
|
||
error: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) | ||
--> $DIR/issue_4266.rs:9:1 | ||
--> $DIR/issue_4266.rs:12:5 | ||
| | ||
LL | / async fn one_to_one<'a>(s: &'a str) -> &'a str { | ||
LL | | s | ||
LL | | } | ||
| |_^ | ||
LL | / async fn one_to_one<'a>(s: &'a str) -> &'a str { | ||
LL | | s | ||
LL | | } | ||
| |_____^ | ||
|
||
error: aborting due to 2 previous errors | ||
|