-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingT-async-awaitType: Issues related to async/awaitType: Issues related to async/awaitgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
Minimal repro:
#![feature(futures_api)]
pub struct Foo;
impl Foo {
pub async fn foo(&mut self) {
}
}
(playground), gives (with clippy 0.0.212 (2019-04-14 fbb3a47)
)
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/lib.rs:5:5
|
5 | / pub async fn foo(&mut self) {
6 | | }
| |_____^
|
= note: #[warn(clippy::needless_lifetimes)] on by default
vorot93, fasterthanlime, oxalica and reitermarkus
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingT-async-awaitType: Issues related to async/awaitType: Issues related to async/awaitgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy