macros: suppress clippy::default_numeric_fallback lint in generated code (#3831)

This commit is contained in:
Taiki Endo
2021-06-02 18:16:23 +09:00
committed by GitHub
parent d4c89758fc
commit 9d8b37d51a
12 changed files with 27 additions and 22 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ use tokio_util::sync::PollSemaphore;
type SemRet = Option<OwnedSemaphorePermit>;
fn semaphore_poll<'a>(
sem: &'a mut PollSemaphore,
) -> tokio_test::task::Spawn<impl Future<Output = SemRet> + 'a> {
fn semaphore_poll(
sem: &mut PollSemaphore,
) -> tokio_test::task::Spawn<impl Future<Output = SemRet> + '_> {
let fut = futures::future::poll_fn(move |cx| sem.poll_acquire(cx));
tokio_test::task::spawn(fut)
}