Skip to content

Commit

Permalink
attributes: fix clippy warning in attributes tests (#2742)
Browse files Browse the repository at this point in the history
Clippy doesn't like the redefinition of a binding with itself. I don't
think this was necessary for the bug we were reproducing here (as the
error test doesn't do this), so I removed it.
  • Loading branch information
hawkw committed Oct 10, 2023
1 parent 180684a commit f085b89
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tracing-attributes/tests/async_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async fn test_async_fn(polls: usize) -> Result<(), ()> {
#[allow(dead_code)] // this is just here to test whether it compiles.
#[instrument]
async fn test_ret_impl_trait(n: i32) -> Result<impl Iterator<Item = i32>, ()> {
let n = n;
Ok((0..10).filter(move |x| *x < n))
}

Expand Down

0 comments on commit f085b89

Please sign in to comment.