Skip to content

Commit

Permalink
Merge pull request #184 from c410-f3r/clippy
Browse files Browse the repository at this point in the history
Fix `clippy::shadow_same` warning
  • Loading branch information
dtolnay committed Dec 9, 2021
2 parents c5de48e + 7f0d4b6 commit 9c42e3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/expand.rs
Expand Up @@ -126,6 +126,7 @@ fn lint_suppress_with_body() -> Attribute {
#[allow(
clippy::let_unit_value,
clippy::no_effect_underscore_binding,
clippy::shadow_same,
clippy::type_complexity,
clippy::type_repetition_in_bounds,
clippy::used_underscore_binding
Expand Down
10 changes: 10 additions & 0 deletions tests/test.rs
Expand Up @@ -1377,3 +1377,13 @@ pub mod issue169 {

pub fn test(_t: &dyn Trait) {}
}

// https://github.com/dtolnay/async-trait/issues/183
pub mod issue183 {
#![deny(clippy::shadow_same)]

#[async_trait::async_trait]
trait Foo {
async fn foo(_n: i32) {}
}
}

0 comments on commit 9c42e3d

Please sign in to comment.